Inheritance: IRuntimeConverter
Example #1
0
        public void runs_all_the_delayed_conversions_before_performing_the_action()
        {
            var c1 = new FakeRuntimeConverter();
            var c2 = new FakeRuntimeConverter();

            values.RegisterDelayedConversion("a", "1", c1);
            values.RegisterDelayedConversion("b", "2", c2);

            theLineGrammar.Expect(x => x.Execute(values, context)).Return(new CellResult[0]);

            afterExecuting();

            theLineGrammar.VerifyAllExpectations();

            ShouldBeTestExtensions.ShouldBe(c1.ConversionHappened, true);
            ShouldBeTestExtensions.ShouldBe(c2.ConversionHappened, true);
        }
        public void runs_all_the_delayed_conversions_before_performing_the_action()
        {
            var c1 = new FakeRuntimeConverter();
            var c2 = new FakeRuntimeConverter();

            values.RegisterDelayedConversion("a", "1", c1);
            values.RegisterDelayedConversion("b", "2", c2);

            theLineGrammar.Execute(values, context).Returns(new CellResult[0]);

            afterExecuting();

            theLineGrammar.Received().Execute(values, context);

            c1.ConversionHappened.ShouldBe(true);
            c2.ConversionHappened.ShouldBe(true);
        }
        public void runs_all_the_delayed_conversions_before_performing_the_action()
        {
            var c1 = new FakeRuntimeConverter();
            var c2 = new FakeRuntimeConverter();

            values.RegisterDelayedConversion("a", "1", c1);
            values.RegisterDelayedConversion("b", "2", c2);

            theLineGrammar.Execute(values, context).Returns(new CellResult[0]);

            afterExecuting();

            theLineGrammar.Received().Execute(values, context);

            c1.ConversionHappened.ShouldBe(true);
            c2.ConversionHappened.ShouldBe(true);

        }
        public void runs_all_the_delayed_conversions_before_performing_the_action()
        {
            var c1 = new FakeRuntimeConverter();
            var c2 = new FakeRuntimeConverter();

            values.RegisterDelayedConversion("a", "1", c1);
            values.RegisterDelayedConversion("b", "2", c2);

            theLineGrammar.Expect(x => x.Execute(values, context)).Return(new CellResult[0]);

            afterExecuting();

            theLineGrammar.VerifyAllExpectations();

            ShouldBeTestExtensions.ShouldBe(c1.ConversionHappened, true);
            ShouldBeTestExtensions.ShouldBe(c2.ConversionHappened, true);

        }