public void MapNullStringArray_Test() { var obj1 = new StringArrayTest { StringArray = default(string[]) }; var obj2 = new StringArrayTest { StringArray = (string[])null, }; Assert.IsNull(obj1.StringArray); ObjectConverter objectConverter = new ObjectConverter(); objectConverter.MapObject(obj1, obj2); Assert.IsNull(obj2.StringArray); }
public void MapNullStringArray_Test() { var obj1 = new StringArrayTest { StringArray = default(string[]) }; var obj2 = new StringArrayTest { StringArray = (string[])null, }; Assert.IsNull(obj1.StringArray); ObjectConverter objectConverter = new ObjectConverter(); objectConverter.MapObject(obj1, obj2); Assert.IsNull(obj2.StringArray); }