コード例 #1
0
        public void read_a_fixture_will_use_the_fixture_name_for_the_title_if_the_fixture_title_is_empty()
        {
            var fixture = new GrammarErrorFixture();


            builder.ReadFixture("GrammarError", fixture);

            builder.Library.FixtureFor("GrammarError").Label.ShouldEqual("GrammarError");
        }
コード例 #2
0
        public void read_a_fixture_will_record_the_Title_of_the_fixture_if_it_is_explicitly_set()
        {
            var fixture = new GrammarErrorFixture
            {
                Title = "the bad grammars"
            };

            builder.ReadFixture("GrammarError", fixture);

            builder.Library.FixtureFor("GrammarError").Label.ShouldEqual("the bad grammars");
        }
コード例 #3
0
        public void read_a_fixture_with_grammar_errors()
        {
            var fixture = new GrammarErrorFixture();

            fixture.Errors.Count().ShouldEqual(2);

            builder.ReadFixture("GrammarError", fixture);

            FixtureGraph fixtureGraph = builder.Library.FixtureFor("GrammarError");

            fixtureGraph.AllErrors().Count().ShouldEqual(2);

            fixtureGraph.AllErrors().Each(x => x.Node.ShouldEqual(fixtureGraph));
        }
コード例 #4
0
        public void read_a_fixture_with_grammar_errors()
        {
            var fixture = new GrammarErrorFixture();
            fixture.Errors.Count().ShouldEqual(2);

            builder.ReadFixture("GrammarError", fixture);

            FixtureGraph fixtureGraph = builder.Library.FixtureFor("GrammarError");
            fixtureGraph.AllErrors().Count().ShouldEqual(2);

            fixtureGraph.AllErrors().Each(x => x.Node.ShouldEqual(fixtureGraph));
        }
コード例 #5
0
        public void read_a_fixture_will_use_the_fixture_name_for_the_title_if_the_fixture_title_is_empty()
        {
            var fixture = new GrammarErrorFixture();

            builder.ReadFixture("GrammarError", fixture);

            builder.Library.FixtureFor("GrammarError").Label.ShouldEqual("GrammarError");
        }
コード例 #6
0
        public void read_a_fixture_will_record_the_Title_of_the_fixture_if_it_is_explicitly_set()
        {
            var fixture = new GrammarErrorFixture
            {
                Title = "the bad grammars"
            };

            builder.ReadFixture("GrammarError", fixture);

            builder.Library.FixtureFor("GrammarError").Label.ShouldEqual("the bad grammars");
        }