Esempio n. 1
0
 public void should_have_a_label()
 {
     var fixture = new FactFixture();
     var grammar = fixture["True"];
     var fixtureLibrary = new FixtureLibrary();
     var sentence = grammar.ToStructure(fixtureLibrary) as Sentence;
     sentence.PartCount.ShouldEqual(1);
     sentence.Parts[0].ShouldBeOfType<Label>().Text.ShouldEqual("This is true");
 }
Esempio n. 2
0
        public void should_have_a_label()
        {
            var fixture        = new FactFixture();
            var grammar        = fixture["True"];
            var fixtureLibrary = new FixtureLibrary();
            var sentence       = grammar.ToStructure(fixtureLibrary) as Sentence;

            sentence.PartCount.ShouldEqual(1);
            sentence.Parts[0].ShouldBeOfType <Label>().Text.ShouldEqual("This is true");
        }