Tests.Tests.TestChoiceWithBracketsOnly C# (CSharp) Method

TestChoiceWithBracketsOnly() private method

private TestChoiceWithBracketsOnly ( ) : void
return void
        public void TestChoiceWithBracketsOnly()
        {
            var storyStr = "*   [Option]\n    Text";

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

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

            story.ChooseChoiceIndex(0);

            Assert.AreEqual("Text\n", story.Continue());
        }
Tests