public void TryGetValue_instance_not_null_invalid_property() { var runtimeDynamicType = new RuntimeDynamicType(typeof(TestClass)); var instance = new TestClass { Name = "NoName" }; var result = runtimeDynamicType.TryGetValue(instance, "nothing"); Assert.AreEqual(Undefined.Value, result); }
public void TryGetValue_instance_null_returns_undefined() { var runtimeDynamicType = new RuntimeDynamicType(typeof(TestClass)); var result = runtimeDynamicType.TryGetValue(null, string.Empty); Assert.AreEqual(Undefined.Value, result); }