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

Mishina_Violetta_Aleksandrovna #20

Open
wants to merge 12 commits into
base: Mishina_Violetta_Aleksandrovna
Choose a base branch
from

Conversation

Violettam88
Copy link

Task_one

Console.SetIn(standardIn);
}

[Theory]
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 +27 to +38
public string Name
{
get
{
return name;
}

set
{
name = value;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

тут достаточно {get; set:} у вас же нет внутри никакой бизнес логики

Console.WriteLine($"The country of England has a population of {Population} people and an area of {Square} km^2");
}

public override void ChangePopulation()
Copy link
Contributor

Choose a reason for hiding this comment

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

вот такое вы не протестите в принципе :(

Copy link
Contributor

Choose a reason for hiding this comment

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

лучше передавайте параметр извне

@@ -0,0 +1,30 @@
namespace CourseApp
Copy link
Contributor

Choose a reason for hiding this comment

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

а почему у файла такое странное название?

return "(Лучница) " + Name;
}

public override string Ability()
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 Jan 12, 2023

почему файлы так странно добавлены - тоже будет задание на git

saga/Game (2).cs Outdated
return second;
}

if (debaffinf == "Заколдованная пыль")
Copy link
Contributor

Choose a reason for hiding this comment

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

а если таковых будет много?

using System;
using System.Collections.Generic;

public static class Logger
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