public void No_Writeable_Columns_Returns_None_With_NoWriteableColumnsFoundMsg() { // Arrange var table = new FooUnwriteableTable(); var columns = MapF.GetColumns <FooUnwriteableTable, FooUnwriteable>(table).UnsafeUnwrap(); var map = new TableMap(table, columns, GetColumnNames_Tests.Get().column); // Act var result = map.GetWriteableColumnNamesAndAliases(); // Assert result.AssertNone().AssertType <NoWriteableColumnsFoundMsg>(); }
public void Returns_Extracted_Columns_Without_Duplicates() { // Arrange var t0 = new FooTable(); var t1 = new FooUnwriteableTable(); var t2 = new FooDuplicateTable(); // Act var result = Extract <FooCombined> .From(t0, t1, t2); // Assert var some = result.AssertSome(); Assert.Collection(some, x => Assert.Equal((t0.GetName(), t0.FooId), (x.TblName, x.ColName)), x => Assert.Equal(t0.Bar0, x.ColName), x => Assert.Equal(t1.Bar2, x.ColName) ); }