-
Notifications
You must be signed in to change notification settings - Fork 24
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
Kochneva darina alekseevna #19
base: Kochneva_Darina_Alekseevna
Are you sure you want to change the base?
Kochneva darina alekseevna #19
Conversation
[Fact] | ||
public void RussiaTest() | ||
{ | ||
var rus = new Russia("Russia", "Moscow", 17000); | ||
Assert.Equal("Russia", rus.Name); | ||
Assert.Equal("Moscow", rus.Capital); | ||
Assert.Equal(17000, rus.Square); | ||
} |
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.
часть тут можно сократить на inlineData
CourseApp/Canada.cs
Outdated
|
||
public class Canada : Country | ||
{ | ||
private int positionSq = 2; |
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.
зачем 2 ?
CourseApp/Canada.cs
Outdated
public void PositionSquare() | ||
{ | ||
Console.WriteLine($"{Name} in {positionSq} place in terms of area "); | ||
} |
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.
а это не должно быть в общем классе?
CourseApp/Country.cs
Outdated
/*public void TheCapital() | ||
{ | ||
Console.WriteLine($"The capital of {Name} is {Capital}"); | ||
} | ||
|
||
public void Welcome() | ||
{ | ||
Console.WriteLine($"Welcome to the {Name}! \n"); | ||
}*/ |
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.
удалите закомментированный код
Почти ок :) |
rpg |
Классы и тесты к классам