public void GetHashCodeOfTwoDifferentTables() { var table2ParserMock = new Mock <CellsParserBase>(); table2ParserMock.Setup(p => p.ParseCells(It.IsAny <string>())).Returns(Enumerable.Repeat("AnotherCell", 3).ToArray()); var table2 = new CsvTable(_pathToDefaultTable, table2ParserMock.Object, _defaultRowsReaderMock.Object); Assert.False(_defaultTable.GetHashCode() == table2.GetHashCode()); }
public void GetHashCodeOfTwoEqualsTables() { var table2 = new CsvTable(_pathToDefaultTable, _defaultParserMock.Object, _defaultRowsReaderMock.Object); Assert.True(_defaultTable.GetHashCode() == table2.GetHashCode()); }