public void Validation_Can_Be_Overridden_With_Null()
        {
            var target = new Class3();

            target.SetValue(Class1.QuxProperty, 50);
            Assert.Equal(50, target.GetValue(Class1.QuxProperty));
        }
Ejemplo n.º 2
0
        public void GetValue_Doesnt_Throw_Exception_For_Unregistered_Property()
        {
            var target = new Class3();

            Assert.Equal("foodefault", target.GetValue(Class1.FooProperty));
        }
        public void GetValue_Throws_Exception_For_Unregistered_Property()
        {
            var target = new Class3();

            Assert.Throws <ArgumentException>(() => target.GetValue(Class1.FooProperty));
        }