Пример #1
0
 public void Should_throw_exception_if_mapping_with_null_source()
 {
     Assert.Throws <ArgumentNullException>(() => SimpleMapper.Map((MyClass1)null, new MyClass2()));
 }
Пример #2
0
 public void Should_throw_exception_if_mapping_with_null_target()
 {
     Assert.Throws <ArgumentNullException>(() => SimpleMapper.Map(new MyClass1(), (MyClass2)null));
 }
Пример #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 !));
 }