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

Class task #18

Open
wants to merge 10 commits into
base: Kornilich_Ksenija_Sergeevna
Choose a base branch
from

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