public void LoadingData_WithEmptyDictionaryConfigured_ThrowsException() { var mapper = new MapperWithNoConfiguration(); var rawData = new Dictionary <string, object>(); Assert.Throws <ArgumentException>(() => { mapper.LoadData(rawData); }); }
public void LoadingData_WithDictionaryConfigured_DoesNotThrowException() { var mapper = new MapperWithNoConfiguration(); var rawData = new Dictionary <string, object> { { "some-Integer", 123 } }; mapper.LoadData(rawData); }
public void LoadingData_WithNullObjectConfigured_ThrowsException() { var mapper = new MapperWithNoConfiguration(); IDictionary <string, object> rawData = null; Assert.Throws <ArgumentNullException>(() => { mapper.LoadData(rawData); }); }