Skip to content

Conversation

@MNYOU
Copy link

@MNYOU MNYOU commented Nov 27, 2023

@a_zhelonkin

// Плохо читаем
// Не предоставляет детальную информацию при неудачном тестировании
// При изменении Person потребует изменений в методе AreEqual
Assert.True(AreEqual(actualTsar, expectedTsar));

Choose a reason for hiding this comment

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

Внутри AreEqual есть рекурсивный вызов. Есть ли у него какие-то недостатки?

Copy link
Author

Choose a reason for hiding this comment

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

Добавил

[TestCase("00.0")]
[TestCase("+2.0")]
[TestCase("1111")]
public void IsValidNumber_ShouldBeTrue_WhenNumberIsValid(string value)

Choose a reason for hiding this comment

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

  • Не хватает декомпозиции этого и следующего текстов, сейчас их названия буквально говорят "отдавать нет, когда нет" и "отдавать да, когда да"
  • Не хватает кейсов с null, только пустой строкой, только буквами/символами, разными десятичными разделителями, отбивкой разрядов, мб что-то еще
  • Не хватает кейсов с precision, scale, onlyPositive

Copy link
Author

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