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

Савенко Дмитрий #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Asrom11
Copy link

@Asrom11 Asrom11 commented Nov 4, 2024

@VladSavitskiy

@@ -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.

[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.

Comment on lines 28 to 29
[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.

using NUnit.Framework.Legacy;
using NUnit.Framework;
using FluentAssertions;
using System;

namespace HomeExercise.Tasks.NumberValidator;

[TestFixture]

This comment was marked as outdated.

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.

Copy link
Author

Choose a reason for hiding this comment

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

До конца не понял, что именно прибрать надо там, максимум что я понял, то название у "Проверка текущего царя"

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