-
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
Mishina_Violetta_Aleksandrovna #20
base: Mishina_Violetta_Aleksandrovna
Are you sure you want to change the base?
Mishina_Violetta_Aleksandrovna #20
Conversation
Console.SetIn(standardIn); | ||
} | ||
|
||
[Theory] |
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.
лучше вместо таких сложных тестов поменять код - тесты будут проще и не будет нарушаться принцип единой ответственности
public string Name | ||
{ | ||
get | ||
{ | ||
return name; | ||
} | ||
|
||
set | ||
{ | ||
name = value; | ||
} | ||
} |
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.
тут достаточно {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() |
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.
вот такое вы не протестите в принципе :(
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.
лучше передавайте параметр извне
saga/Archer (2).cs
Outdated
@@ -0,0 +1,30 @@ | |||
namespace CourseApp |
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.
а почему у файла такое странное название?
saga/Archer (2).cs
Outdated
return "(Лучница) " + Name; | ||
} | ||
|
||
public override string Ability() |
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.
а что если способностей много?
почему файлы так странно добавлены - тоже будет задание на git |
saga/Game (2).cs
Outdated
return second; | ||
} | ||
|
||
if (debaffinf == "Заколдованная пыль") |
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.
а если таковых будет много?
saga/Logger (2).cs
Outdated
using System; | ||
using System.Collections.Generic; | ||
|
||
public static class Logger |
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.
ну формально - это не логгер :) не надо так (но сейчас не правьте
Task_one