[Test] public void FoldedWithoutExtraTextFormatsBody() { var cell = new CellBase(string.Empty); cell.SetAttribute(CellAttribute.Body, "stuff"); cell.SetAttribute(CellAttribute.Folded, string.Empty); Assert.AreEqual(FormatFolded("stuff"), ParseStoryTestString.Body(cell)); }
[Test] public void FoldedWithExtraTextIsFormatted() { var cell = new CellBase(string.Empty); cell.SetAttribute(CellAttribute.Body, string.Empty); cell.SetAttribute(CellAttribute.Folded, "more"); Assert.AreEqual(FormatFolded("more"), ParseStoryTestString.Body(cell)); }
void RunTest(Fixture fixture, Parse parse) { fixture.Processor = processor; fixture.DoTable(parse.Parts); resultCounts = fixture.TestStatus.Counts; testResult = new ParseStoryTestString().Parse(typeof(StoryTableString), new TypedValue(), parse.Parts).ValueString; }
void RunTest(Parse parse) { var test = new StoryTest(parse, (t,c) => { resultCounts = c;}); test.Execute(configuration); testResult = new ParseStoryTestString().Parse(null, new TypedValue(), parse).ValueString; }