Exemple #1
0
        public void MustDoNothingOnRevert()
        {
            var result = sut.Revert();

            logger.VerifyNoOtherCalls();
            runtime.VerifyNoOtherCalls();

            Assert.AreEqual(OperationResult.Success, result);
        }
        public void Revert_MustDoNothing()
        {
            var sut    = new ConfigurationOperation(null, repository.Object, hashAlgorithm.Object, logger.Object, sessionContext);
            var result = sut.Revert();

            hashAlgorithm.VerifyNoOtherCalls();
            repository.VerifyNoOtherCalls();

            Assert.AreEqual(OperationResult.Success, result);
        }