Skip to content

Commit

Permalink
Fix test assertion in QualityExtensionsTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
KsiProgramming committed May 20, 2024
1 parent 7e8b1b7 commit a158673
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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);
}
}
}

0 comments on commit a158673

Please sign in to comment.