public void Can_update() { var dummy = new DummyClassWithPropertyInfoProperty {DummyPropertyInfo = propertyInfo}; repository.Save(dummy); dummy.DummyPropertyInfo = propertyInfo; repository.Save(dummy); Assert.AreEqual(propertyInfo.Name, dummy.DummyPropertyInfo.Name); Assert.AreEqual(propertyInfo.DeclaringType.AssemblyQualifiedName, dummy.DummyPropertyInfo.DeclaringType.AssemblyQualifiedName); }
public void Can_save() { var dummy = new DummyClassWithPropertyInfoProperty {DummyPropertyInfo = propertyInfo}; repository.Save(dummy); }