Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
 }