예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }
예제 #4
0
 public void Can_save()
 {
     var dummy = new DummyClassWithTypeProperty {DummyType = typeof(DateTime)};
     repository.Save(dummy);
 }