Skip to content

Conversation

ksyukornilich
Copy link

No description provided.

@ksyukornilich ksyukornilich changed the title DRAFT: class task Class task Oct 7, 2022
@@ -0,0 +1,47 @@
namespace CourseApp.Tests
Copy link
Contributor

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
Copy link
Contributor

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
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 +37 to +41
/*
* public virtual string GetInfo() {
* return "It's a pet";
* }
*/
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