public void SaveItemThrowsIfItemChangesParameterIsNull( FakeDataProvider sut, ItemDefinition itemDefinition) { Action action = () => sut.SaveItem(itemDefinition, null, null); action.ShouldThrow <ArgumentNullException>().Which.ParamName.Should().Be("changes"); }
public void SaveItemReturnsFalse( [Greedy] FakeDataProvider sut, ItemDefinition itemDefinition, ItemChanges changes, CallContext context) { // 'true' looks more correct here but numerous tests start failing then. sut.SaveItem(itemDefinition, changes, context).Should().BeFalse(); }
public void SaveItemThrowsIfItemDefinitionIsNull(FakeDataProvider sut) { Action action = () => sut.SaveItem(null, null, null); action.ShouldThrow <ArgumentNullException>().Which.ParamName.Should().Be("itemDefinition"); }