public void ReturnsSameHashCodeForEqualObjects() { AbsolutePath a = @"c:\folder\file.ext"; AbsolutePath b = @"c:\folder\file.ext"; var hashcodeA = a.GetHashCode(); var hashcodeB = b.GetHashCode(); hashcodeA.Should().Be(hashcodeB); }