public void SqlSelectShouldBuildProperSql() { string expectedSql = @"SELECT TestDataModelId, Name FROM TestDataModel"; // without implementation of IRecordChangeInfo var select = new SqlSelect <TestDataModel>(); var actualSql = select.BuildSql(); Assert.AreEqual(expectedSql, actualSql); // with implementation of IRecordChangeInfo expectedSql = @"SELECT TestDataModelWithChangeInfoId, Name, RowVersion FROM TestDataModelWithChangeInfo"; var select2 = new SqlSelect <TestDataModelWithChangeInfo>(); actualSql = select2.BuildSql(); Assert.AreEqual(expectedSql, actualSql); }