public void MergeTestFiles() { // Arrange var testCase1Id = Guid.NewGuid(); var fileA = new TestFile { FilePath = "/c/", Source = "bla", Tests = new List <TestCase> { new TestCase { Id = testCase1Id, Line = 1, Name = "test1", Source = "bla" } } }; var fileB = new TestFile { FilePath = "/c/", Source = "bla", Tests = new List <TestCase> { new TestCase { Id = testCase1Id, Line = 1, Name = "test1", Source = "bla" } } }; // Assert fileA.ShouldBe(fileB); fileA.GetHashCode().ShouldBe(fileB.GetHashCode()); }