public void CallEmitAndSave_MustReturnReport() { var reports = new ChangeReport[] { new ChangeReport(null, null, new IConfigurationChangeInfo[] { new ConfigurationChangeInfo() }) }; var saver = new IChangeTransferCondition[] { new NullTransfer() }; var rep = new ChangeSaver(reports, saver); var res = ChangeSaverExtensions.EmitAndSave(rep); Assert.IsNotNull(res); }
public void GivenNull_MustThrowException() { Assert.ThrowsException <ArgumentNullException>(() => ChangeSaverExtensions.EmitAndSave(null)); }