-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BYVAM0 - Milyen macska vagy? #43
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Szép munka
{ | ||
private static int NormalizeAnswer(int answer) | ||
{ | ||
return answer switch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pattern matching 👍
} | ||
|
||
private static string CreateHtmlMarkup(Result result) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
""" idézőjellel lehet több soros szöveget megadni
{ | ||
public interface IDisplay | ||
{ | ||
void GreetUser(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interfész segregation 👍
public enum Cat | ||
{ | ||
Tabby = 0b_000_000, | ||
Void = 0b_000_010, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Miért binárisan? decimális vagy hexa?
[Test] | ||
public void Test1() | ||
{ | ||
Assert.Pass(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Üres teszt?
[Test] | ||
public void Test1() | ||
{ | ||
Assert.Pass(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Üres teszt?
[Test] | ||
public void GetCatFact() | ||
{ | ||
FactService |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ez konkrétan szerintem nem is fordul így.
|
||
namespace BYVAM0_tests.Mocks | ||
{ | ||
public class MockDisplay : IDisplay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ez nem mock, ez egy Fake. Különbségek:
Fake - Csak helyettesítő implementáció, ami semmit se csinál
Stub - Helyettesítő részleges implementáció
Spy - Helyettesítő részleges vagy teljes implementáció, ami lehetőséget ad a megfigyelésre is. Pl egy számlálón keresztül, hogy mennyiszer lett egy adott metódus meghívva.
Mock - Dinamikusan generált. Konfigurációtól függően lehet Fake, Stub vagy Spy is akár.
Closes #20