Tests.Tests.TestConditionalChoices C# (CSharp) Method

TestConditionalChoices() private method

private TestConditionalChoices ( ) : void
return void
        public void TestConditionalChoices()
        {
            var storyStr =
                @"
* { true } { false } not displayed
* { true } { true }
  { true and true }  one
* { false } not displayed
* (name) { true } two
* { true }
  { true }
  three
* { true }
  four
                ";

            Story story = CompileString(storyStr);
            story.ContinueMaximally();

            Assert.AreEqual(4, story.currentChoices.Count);
            Assert.AreEqual("one", story.currentChoices[0].text);
            Assert.AreEqual("two", story.currentChoices[1].text);
            Assert.AreEqual("three", story.currentChoices[2].text);
            Assert.AreEqual("four", story.currentChoices[3].text);
        }
Tests