public void should_read_in_the_table_data_to_the_default_section() { theFixtures.AddWithDefaultCellHandling <NumberTableFixture>(); var spec = MarkdownReader.ReadFromText(@" # Some Specification [NumberTable] |> Add |x|y|sum| |1|2|3| |2|3|5| |6|4|10| "); var step = spec.Children.Single().ShouldBeOfType <Section>() .Children.Single().ShouldBeOfType <Step>(); step.Collections.Count.ShouldBe(1); step.Collections.Single().Key.ShouldBe(Table.DefaultCollectionName); step.Collections[Table.DefaultCollectionName].Children.Count.ShouldBe(3); var row1 = step.Collections[Table.DefaultCollectionName].Children.First().ShouldBeOfType <Step>(); row1.Values["x"].ShouldBe("1"); row1.Values["y"].ShouldBe("2"); row1.Values["sum"].ShouldBe("3"); }
public SpecificationPostProcessorTester() { theLibrary.AddWithDefaultCellHandling <PostSpecFixture>(); }