Tests.Tests.TestWeaveGathers C# (CSharp) Method

TestWeaveGathers() private method

private TestWeaveGathers ( ) : void
return void
        public void TestWeaveGathers()
        {
            var storyStr =
                @"
-
 * one
    * * two
   - - three
 *  four
   - - five
- six
                ";

            Story story = CompileString(storyStr);

            story.ContinueMaximally();

            Assert.AreEqual(2, story.currentChoices.Count);
            Assert.AreEqual("one", story.currentChoices[0].text);
            Assert.AreEqual("four", story.currentChoices[1].text);

            story.ChooseChoiceIndex(0);
            story.ContinueMaximally();

            Assert.AreEqual(1, story.currentChoices.Count);
            Assert.AreEqual("two", story.currentChoices[0].text);

            story.ChooseChoiceIndex(0);
            Assert.AreEqual("two\nthree\nsix\n", story.ContinueMaximally());
        }
Tests