Esempio n. 1
0
 public void Should_throw_exception_if_mapping_with_null_source()
 {
     Assert.Throws <ArgumentNullException>(() => SimpleMapper.Map((MyClass1)null, new MyClass2()));
 }
Esempio n. 2
0
 public void Should_throw_exception_if_mapping_with_null_target()
 {
     Assert.Throws <ArgumentNullException>(() => SimpleMapper.Map(new MyClass1(), (MyClass2)null));
 }
 public void Should_throw_exception_if_mapping_with_null_target()
 {
     Assert.Throws <ArgumentNullException>(() => SimpleMapper.Map(new Class2 <int, int>(), (Class2 <int, int>?)null !));
 }