示例#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");
        }