예제 #1
0
        public void To_partial_has_field()
        {
            var data = new TestPoco {
                Test = "test"
            };
            var projection = data.ToPartial("Test");

            Assert.That(() => projection.Test, Throws.Nothing);
        }
예제 #2
0
        public void To_partial_access_wrong_property()
        {
            var data = new TestPoco {
                Test = "test"
            };
            var projection = data.ToPartial("Test");

            Assert.That(() => projection.Not, Throws.Exception);
        }
예제 #3
0
        public void To_partial_mismatch_case()
        {
            var data = new TestPoco {
                Test = "test"
            };
            var projection = data.ToPartial("test");

            Assert.That(() => projection.test, Throws.Exception);
        }
예제 #4
0
        public void To_partial_not_has_field()
        {
            var data = new TestPoco {
                Test = "test"
            };
            var projection = data.ToPartial("Not");

            Assert.That(() => projection.Not, Throws.Exception);
        }
 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);
 }
 public void To_partial_has_field()
 {
     var data = new TestPoco { Test = "test" };
     var projection = data.ToPartial("Test");
     Assert.That(() => projection.Test, Throws.Nothing);
 }