Example #1
0
        public void AddOwnered_Property_Retains_Default_Value()
        {
            var target = new Class2();

            Assert.Equal("foodefault", target.GetValue(Class2.FooProperty));
        }
        public void AddOwnered_Property_Retains_Validation()
        {
            var target = new Class2();

            Assert.Throws <IndexOutOfRangeException>(() => target.SetValue(Class2.FooProperty, "throw"));
        }