public void To_partial_has_field() { var data = new TestPoco { Test = "test" }; var projection = data.ToPartial("Test"); Assert.That(() => projection.Test, Throws.Nothing); }
public void To_partial_access_wrong_property() { var data = new TestPoco { Test = "test" }; var projection = data.ToPartial("Test"); Assert.That(() => projection.Not, Throws.Exception); }
public void To_partial_mismatch_case() { var data = new TestPoco { Test = "test" }; var projection = data.ToPartial("test"); Assert.That(() => projection.test, Throws.Exception); }
public void To_partial_not_has_field() { var data = new TestPoco { Test = "test" }; var projection = data.ToPartial("Not"); Assert.That(() => projection.Not, Throws.Exception); }