public void Type_name_is_assembly_qualified() { // TODO: Find a way to inspect the string data var dummy = new DummyClassWithTypeProperty {DummyType = typeof(DateTime)}; repository.Save(dummy); Assert.AreEqual(typeof(DateTime).AssemblyQualifiedName, dummy.DummyType.AssemblyQualifiedName); }
public void Null_Type_is_saved_and_fetched_as_null() { var dummy = new DummyClassWithTypeProperty(); repository.Save(dummy); Assert.IsNull(dummy.DummyType); Assert.IsNull(repository.Query().Single(instance => instance.Id.Equals(1)).DummyType); }
public void Can_update() { var dummy = new DummyClassWithTypeProperty {DummyType = typeof(DateTime)}; repository.Save(dummy); dummy.DummyType = typeof(TimeSpan); repository.Save(dummy); Assert.AreEqual(typeof(TimeSpan), dummy.DummyType); }
public void Can_save() { var dummy = new DummyClassWithTypeProperty {DummyType = typeof(DateTime)}; repository.Save(dummy); }