public void Should_throw_exception_if_mapping_with_null_source() { Assert.Throws <ArgumentNullException>(() => SimpleMapper.Map((MyClass1)null, new MyClass2())); }
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 !)); }