Example #1
0
        public void try_to_apply_succeeds_if_any_succeeds()
        {
            theStrategies[0].Stub(x => x.TryToApply()).Return(AuthResult.Failed());
            theStrategies[1].Stub(x => x.TryToApply()).Return(AuthResult.Failed());
            theStrategies[2].Stub(x => x.TryToApply()).Return(AuthResult.Failed());
            theStrategies[3].Stub(x => x.TryToApply()).Return(AuthResult.Successful());

            ClassUnderTest.TryToApply().Success.ShouldBeTrue();
        }