Skip to content

Conversation

@JuliaWi
Copy link

@JuliaWi JuliaWi commented Jan 7, 2019

No description provided.

@JuliaWi JuliaWi changed the base branch from master to Julija_Elesina January 7, 2019 18:56
Dish salad = new Dish("Cesar", -100, "rrrrrrrrr", 1000);
Assert.Equal("Cesar", salad.Name);
Assert.Equal(0, salad.Price);
Assert.Equal("NoType", salad.Type);
Copy link
Contributor

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}");
Copy link
Contributor

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;
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Измените имя файла - чтобы показать какие классы вы тут тестируете?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants