-
Notifications
You must be signed in to change notification settings - Fork 23
Julija elesina #56
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
base: Julija_Elesina
Are you sure you want to change the base?
Julija elesina #56
Conversation
| Dish salad = new Dish("Cesar", -100, "rrrrrrrrr", 1000); | ||
| Assert.Equal("Cesar", salad.Name); | ||
| Assert.Equal(0, salad.Price); | ||
| Assert.Equal("NoType", salad.Type); |
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.
А почему будет noType?
| } | ||
| } | ||
|
|
||
| public void GetInfo() => Console.WriteLine($"��������: {Name} ����: {price} ���: {type} ���: {weight}"); |
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.
Поправьте кодировку
|
|
||
| public Dish(string name, int price, string type, int weight) | ||
| { | ||
| Name = name == string.Empty ? $"NoName" : name; |
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.
Боюсь что вся лаба плагиат с лабы 147 группы, код, который совместно написан я вижу, но ок, есть что здесь улучшить
|
|
||
| namespace CourseApp.Tests | ||
| { | ||
| public class UnitTest2 |
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.
Измените имя файла - чтобы показать какие классы вы тут тестируете?
No description provided.