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