public void It_cant_get_values_from_write_only_properties()
        {
            WriteOnlyInts target = new WriteOnlyInts();

            object actual;

            Assert.IsFalse(_providers.TryGetValue(target, "IntProperty", out actual));
            Assert.IsNull(actual);
        }
示例#2
0
 public void It_cant_get_values_from_write_only_properties()
 {
     WriteOnlyInts target = new WriteOnlyInts();
     Assert.IsNull(ValueGetter.GetValue(target, "IntProperty"));
 }
示例#3
0
 public void It_cant_get_values_from_write_only_methods()
 {
     WriteOnlyInts target = new WriteOnlyInts();
     Assert.IsNull(ValueGetter.GetValue(target, "IntMethod"));
 }
示例#4
0
        public void It_cant_get_values_from_write_only_methods()
        {
            WriteOnlyInts target = new WriteOnlyInts();

            Assert.IsNull(ValueGetter.GetValue(target, "IntMethod"));
        }
示例#5
0
        public void It_cant_get_values_from_write_only_properties()
        {
            WriteOnlyInts target = new WriteOnlyInts();

            Assert.IsNull(ValueGetter.GetValue(target, "IntProperty"));
        }
示例#6
0
 public void It_cant_get_values_from_write_only_properties()
 {
     WriteOnlyInts target = new WriteOnlyInts();
     Assert.AreSame(ValueGetter.NoValue, ValueGetter.GetValue(target, "IntProperty", null));
 }