-
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
Class task #18
base: Kornilich_Ksenija_Sergeevna
Are you sure you want to change the base?
Class task #18
Conversation
@@ -0,0 +1,47 @@ | |||
namespace CourseApp.Tests |
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.
а точно наш шаблон использовали? что-то не запускаются проверки (надо будет посмотреть)
using CourseApp.Entities; | ||
using Xunit; | ||
|
||
public class PetTest |
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.
1 - для каждого класса можно создать свой отдельный файл теста
2 - что-то подсказывает что методов у вас больше и на каждый метод где есть логика надо добавить тесты
|
||
public string Color { get; set; } // свойство | ||
|
||
public int Age |
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 virtual string GetInfo() { | ||
* return "It's a pet"; | ||
* } | ||
*/ |
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.
закомментированный текст обычно удаляем
No description provided.