public void It_gets_case_insensitive_method_values() { ReadWriteInts target = new ReadWriteInts(); target.IntField = 123; Assert.AreEqual(123, ValueGetter.GetValue(target, "intmethod")); }
public void It_gets_method_values() { ReadWriteInts target = new ReadWriteInts(); target.IntField = 123; Assert.AreEqual(123, ValueGetter.GetValue(target, "IntMethod")); }
public void It_gets_field_values() { ReadWriteInts target = new ReadWriteInts(); target.IntField = 123; object actual; Assert.IsTrue(_providers.TryGetValue(target, "IntField", out actual)); Assert.AreEqual(123, actual); }
public void It_gets_property_values() { ReadWriteInts target = new ReadWriteInts(); target.IntField = 123; Assert.AreEqual(123, ValueGetter.GetValue(target, "IntProperty")); }
public void It_gets_field_values() { ReadWriteInts target = new ReadWriteInts(); target.IntField = 123; Assert.AreEqual(123, ValueGetter.GetValue(target, "IntField", null)); }
public void It_gets_case_insensitive_property_values() { ReadWriteInts target = new ReadWriteInts(); target.IntField = 123; Assert.AreEqual(123, ValueGetter.GetValue(target, "intproperty", null)); }
public void It_gets_method_context_values() { ReadWriteInts target = new ReadWriteInts(); target.IntField = 123; Assert.AreEqual(123, ValueGetter.GetValue(target, "IntMethodWithContext", null)); }
public void It_gets_lambda_values_from_methods() { ReadWriteInts target = new ReadWriteInts(); Assert.AreEqual(new Lambda(target.LambdaMethod), ValueGetter.GetValue(target, "LambdaMethod")); }