Skip to content

Conversation

@CuteDarKy
Copy link

Классы и тесты к классам

Comment on lines +7 to +14
[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);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

часть тут можно сократить на inlineData


public class Canada : Country
{
private int positionSq = 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

зачем 2 ?

Comment on lines 14 to 17
public void PositionSquare()
{
Console.WriteLine($"{Name} in {positionSq} place in terms of area ");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

а это не должно быть в общем классе?

Comment on lines 38 to 46
/*public void TheCapital()
{
Console.WriteLine($"The capital of {Name} is {Capital}");
}

public void Welcome()
{
Console.WriteLine($"Welcome to the {Name}! \n");
}*/
Copy link
Contributor

Choose a reason for hiding this comment

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

удалите закомментированный код

@jskonst
Copy link
Contributor

jskonst commented Nov 6, 2022

Почти ок :)

@CuteDarKy
Copy link
Author

rpg

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