public void SetValue_valid_instance()
 {
     var runtimeDynamicType = new RuntimeDynamicType(typeof(TestClass));
     var instance = new TestClass();
     const string value = "someName";
     runtimeDynamicType.SetValue(instance, "Name", value);
     Assert.AreEqual(value, instance.Name);
 }
 public void SetValue_instance_null_throws()
 {
     var runtimeDynamicType = new RuntimeDynamicType(typeof(TestClass));
     runtimeDynamicType.SetValue(null, string.Empty, null);
 }