Пример #1
0
        public void SaveItemThrowsIfItemChangesParameterIsNull(
            FakeDataProvider sut,
            ItemDefinition itemDefinition)
        {
            Action action = () => sut.SaveItem(itemDefinition, null, null);

            action.ShouldThrow <ArgumentNullException>().Which.ParamName.Should().Be("changes");
        }
Пример #2
0
 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();
 }
Пример #3
0
        public void SaveItemThrowsIfItemDefinitionIsNull(FakeDataProvider sut)
        {
            Action action = () => sut.SaveItem(null, null, null);

            action.ShouldThrow <ArgumentNullException>().Which.ParamName.Should().Be("itemDefinition");
        }