Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
 }