public void AssertNumberOfRows(int exhibitId, int expectedValue) { var actualNumberOfRowsInEntityTable = new EntityTable(ConnectionString).GetNumberOfRows(exhibitId); var expectedNumberOfRowsInEntityTable = expectedValue; Assert.True(actualNumberOfRowsInEntityTable.Equals(expectedNumberOfRowsInEntityTable), "The number of rows in Entity table is not equal to the expected number. Expected: " + expectedNumberOfRowsInEntityTable + ", but was: " + actualNumberOfRowsInEntityTable + ". Exhibit id is " + exhibitId); }