Skip to content
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

Open
wants to merge 11 commits into
base: Kochneva_Darina_Alekseevna
Choose a base branch
from

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