public void can_enumerate_results_without_executing()
        {
            var results = new TestResultEnumerator(DoAnimation());
            var animation = results.Next<AnimationResult>();

            Assert.That(animation.Key, Is.EqualTo("4"));
        }
Пример #2
0
        public void can_enumerate_results_without_executing()
        {
            var results   = new TestResultEnumerator(DoAnimation());
            var animation = results.Next <AnimationResult>();

            animation.Key.ShouldBe("4");
        }
        public void can_enumerate_multiple_results_without_executing()
        {
            var results = new TestResultEnumerator(DoSeveralThings());

            var animation = results.Next<AnimationResult>();
            Assert.That(animation.Key, Is.EqualTo("4"));

            var showChild = results.Next<OpenChildResult<FakeScreen>>();
            Assert.That(showChild, Is.Not.Null);
        }
Пример #4
0
        public void can_enumerate_multiple_results_without_executing()
        {
            var results = new TestResultEnumerator(DoSeveralThings());

            var animation = results.Next <AnimationResult>();

            animation.Key.ShouldBe("4");

            var showChild = results.Next <OpenChildResult <FakeScreen> >();

            showChild.ShouldNotBeNull();
        }