Пример #1
0
        public void Insert()
        {
            StubInnerData(_order1);

            _modificationCheckingDecorator.Insert(0, _order3);

            _wrappedDataMock.AssertWasCalled(mock => mock.Insert(0, _order3));
        }
Пример #2
0
 public void EnsureDataComplete()
 {
     _readOnlyDecorator.EnsureDataComplete();
     _wrappedDataStub.AssertWasCalled(stub => stub.EnsureDataComplete());
 }
Пример #3
0
 public void EnsureDataComplete_DelegatesToStrategy()
 {
     _collectionWithDataStrategyMock.EnsureDataComplete();
     _dataStrategyMock.AssertWasCalled(mock => mock.EnsureDataComplete());
 }