-
Notifications
You must be signed in to change notification settings - Fork 32
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
Савенко Дмитрий #15
base: master
Are you sure you want to change the base?
Савенко Дмитрий #15
Conversation
@@ -35,6 +30,16 @@ public void CheckCurrentTsar_WithCustomEquality() | |||
new Person("Vasili III of Russia", 28, 170, 60, null)); | |||
|
|||
// Какие недостатки у такого подхода? | |||
/* 1. Ограниченная расширяемость: |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
[TestCase("23,1", false, 2, 1, true, TestName = "IsValidNumber_ShouldReturnFalse_WhenExceedsPrecisionWithComma")] | ||
[TestCase("23,1", false, 3, 0, true, TestName = "IsValidNumber_ShouldReturnFalse_WhenExceedsScaleWithComma")] | ||
[TestCase("+1", false, 1, 0, true, TestName = "IsValidNumber_ShouldReturnFalse_WhenSignExceedsPrecision")] | ||
public void IsValidNumber_ShouldReturnExpectedResult(string value, bool expectedResult, int precision, int scale, bool onlyPositive) |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
[TestCase("0", true, 1, 0, true, TestName = "IsValidNumber_ShouldReturnTrue_WhenSingleDigit")] | ||
[TestCase("0.1", true, 2, 1, true, TestName = "IsValidNumber_ShouldReturnTrue_WhenValidNumberWithDecimalPoint")] |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
using NUnit.Framework.Legacy; | ||
using NUnit.Framework; | ||
using FluentAssertions; | ||
using System; | ||
|
||
namespace HomeExercise.Tasks.NumberValidator; | ||
|
||
[TestFixture] |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
ClassicAssert.AreEqual(expectedTsar.Parent.Age, actualTsar.Parent.Age); | ||
ClassicAssert.AreEqual(expectedTsar.Parent.Height, actualTsar.Parent.Height); | ||
ClassicAssert.AreEqual(expectedTsar.Parent.Parent, actualTsar.Parent.Parent); | ||
|
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
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.
Все правильно понял)
@VladSavitskiy