Example #1
0
        public void IsDataComplete()
        {
            _wrappedDataStub.Stub(stub => stub.IsDataComplete).Return(true);
            Assert.That(_readOnlyDecorator.IsDataComplete, Is.True);

            _wrappedDataStub.BackToRecord();
            _wrappedDataStub.Stub(stub => stub.IsDataComplete).Return(false);
            Assert.That(_readOnlyDecorator.IsDataComplete, Is.False);
        }
Example #2
0
        public void IsDataComplete()
        {
            _dataStrategyMock.Stub(mock => mock.IsDataComplete).Return(true);
            Assert.That(_collectionWithDataStrategyMock.IsDataComplete, Is.True);

            _dataStrategyMock.BackToRecord();
            _dataStrategyMock.Stub(mock => mock.IsDataComplete).Return(false);
            Assert.That(_collectionWithDataStrategyMock.IsDataComplete, Is.False);
        }