public void Entity_Missing_Property_Returns_Invalid_With_Error() { // Arrange var e0 = $"The definition of entity '{typeof(Foo).FullName}' is missing property '{nameof(FooTableWithBar2.Bar2)}'."; // Act var(valid, errors) = MapF.ValidateTable <FooTableWithBar2, Foo>(); // Assert Assert.False(valid); Assert.Collection(errors, x => Assert.Equal(e0, x)); }
public void Table_Missing_Column_Returns_Invalid_With_Error() { // Arrange var e0 = $"The definition of table '{typeof(FooTableWithoutBar0).FullName}' is missing field '{nameof(Foo.Bar0)}'."; // Act var(valid, errors) = MapF.ValidateTable <FooTableWithoutBar0, Foo>(); // Assert Assert.False(valid); Assert.Collection(errors, x => Assert.Equal(e0, x)); }