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);
        }
Exemplo n.º 2
0
 public void It_cant_get_values_from_write_only_properties()
 {
     WriteOnlyInts target = new WriteOnlyInts();
     Assert.IsNull(ValueGetter.GetValue(target, "IntProperty"));
 }
Exemplo n.º 3
0
 public void It_cant_get_values_from_write_only_methods()
 {
     WriteOnlyInts target = new WriteOnlyInts();
     Assert.IsNull(ValueGetter.GetValue(target, "IntMethod"));
 }
Exemplo n.º 4
0
        public void It_cant_get_values_from_write_only_methods()
        {
            WriteOnlyInts target = new WriteOnlyInts();

            Assert.IsNull(ValueGetter.GetValue(target, "IntMethod"));
        }
Exemplo n.º 5
0
        public void It_cant_get_values_from_write_only_properties()
        {
            WriteOnlyInts target = new WriteOnlyInts();

            Assert.IsNull(ValueGetter.GetValue(target, "IntProperty"));
        }
Exemplo n.º 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));
 }