Skip to content

Commit 357e7fc

Browse files
kamilbaczekkamilbaczek
authored andcommitted
refactor: update type comparison in ValueObjectTests to use GetType method
1 parent 90a1176 commit 357e7fc

File tree

1 file changed

+1
-1
lines changed
  • Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Core.UnitTests

1 file changed

+1
-1
lines changed

Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Core.UnitTests/ValueObjectTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ internal void Given_two_different_type_objects_When_values_are_the_same_Then_sho
6161
var secondObject = new AnotherTypeFakeValueObject();
6262

6363
// Act & Assert
64-
// firstObject.ShouldNotBe(secondObject);
64+
firstObject.GetType().ShouldNotBe(secondObject.GetType());
6565
firstObject.Equals(secondObject).ShouldBeFalse();
6666
(firstObject == secondObject).ShouldBeFalse();
6767
(firstObject != secondObject).ShouldBeTrue();

0 commit comments

Comments
 (0)