예제 #1
0
        public void Disabled()
        {
            var result = PushFileResult.Disabled();

            result.Succeeded.Should().BeFalse();

            result.ToString().Should().Contain("Disabled");
        }
예제 #2
0
        public void Diabled_Succeeded_Is_Succeeded()
        {
            var ringCopyResult        = PushFileResult.Disabled();
            var outsideRingCopyResult = PushFileResult.PushSucceeded();
            var result = new ProactiveCopyResult(ringCopyResult, outsideRingCopyResult, retries: 0);

            result.Succeeded.Should().BeTrue();

            ringCopyResult.Succeeded.Should().BeFalse();
            outsideRingCopyResult.Succeeded.Should().BeTrue();
            result.ToString().Should().Contain("Success");
            result.ToString().Should().Contain("Disabled");
        }