From a1586737535fb10008a07ab5b7dc196c87135d9e Mon Sep 17 00:00:00 2001 From: Ksi Date: Tue, 21 May 2024 00:09:27 +0200 Subject: [PATCH] Fix test assertion in QualityExtensionsTests.cs --- .../ProposedCode/Domain/QualityExtensionsTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Core.Tests/ProposedCode/Domain/QualityExtensionsTests.cs b/tests/Core.Tests/ProposedCode/Domain/QualityExtensionsTests.cs index c2d4575..de6109f 100644 --- a/tests/Core.Tests/ProposedCode/Domain/QualityExtensionsTests.cs +++ b/tests/Core.Tests/ProposedCode/Domain/QualityExtensionsTests.cs @@ -45,7 +45,7 @@ public void Decrease(int qualityValue, int expectedResult) var result = quality.Decrease(); result.value.Should().Be(expectedResult); - result.Should().NotBeSameAs(expectedResult); + result.Should().NotBeSameAs(quality); } [Theory] @@ -57,7 +57,7 @@ public void Increase(int qualityValue, int expectedResult) var result = quality.Increase(); result.value.Should().Be(expectedResult); - result.Should().NotBeSameAs(expectedResult); + result.Should().NotBeSameAs(quality); } [Theory] @@ -71,7 +71,7 @@ public void DecreaseBy(int qualityValue, int step, int expectedResult) var result = quality.DecreaseBy(step); result.value.Should().Be(expectedResult); - result.Should().NotBeSameAs(expectedResult); + result.Should().NotBeSameAs(quality); } [Theory] @@ -85,7 +85,7 @@ public void IncreaseBy(int qualityValue, int step, int expectedResult) var result = quality.IncreaseBy(step); result.value.Should().Be(expectedResult); - result.Should().NotBeSameAs(expectedResult); + result.Should().NotBeSameAs(quality); } } }