public void DeletedRowMakesSnapshotUnequal() { //Arrange var before = MakeSnapshot("Test", 1, 5); var after = MakeSnapshot("Test2", 2, 4); //Act var result = SnapshotDifferenceAnalyser.Match(_collection, before, after); //Assert result.Should().BeFalse(); }
public void EqualSnapshotsReturnEqualStatus() { //Arrange var before = MakeSnapshot("Test"); var after = MakeSnapshot("Test2"); //Act var result = SnapshotDifferenceAnalyser.Match(_collection, before, after); //Assert result.Should().BeTrue(); }
public void NonKeyValueDifferenceMakesSnapshotUnequal() { //Arrange var before = MakeSnapshot("Test", 1, 1, MakeValueSet(5)); var after = MakeSnapshot("Test2", 1, 1, MakeValueSet(6)); //Act var result = SnapshotDifferenceAnalyser.Match(_collection, before, after); //Assert result.Should().BeFalse(); }
public void SnapshotShouldNotConsiderExcludedTables() { //Arrange var before = MakeSnapshot("Test", 1, 1, MakeValueSet(5)); var after = MakeSnapshot("Test2", 1, 1, MakeValueSet(6)); _collection.DefineTable(TableName).ExcludeFromComparison(); //Act var result = SnapshotDifferenceAnalyser.Match(_collection, before, after); //Assert result.Should().BeTrue(); //it can only be a match if the table is ignored }