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"); }
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"); }