Tests.Tests.TestUnbalancedWeaveIndentation C# (CSharp) Метод

TestUnbalancedWeaveIndentation() приватный Метод

private TestUnbalancedWeaveIndentation ( ) : void
Результат void
        public void TestUnbalancedWeaveIndentation()
        {
            var story = CompileString(@"
* * * First
* * * * Very indented
- - End
-> END
");
            story.ContinueMaximally();

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

            story.ChooseChoiceIndex(0);
            Assert.AreEqual("First\n", story.ContinueMaximally());
            Assert.AreEqual(1, story.currentChoices.Count);
            Assert.AreEqual("Very indented", story.currentChoices[0].text);

            story.ChooseChoiceIndex(0);
            Assert.AreEqual("Very indented\nEnd\n", story.ContinueMaximally());
            Assert.AreEqual(0, story.currentChoices.Count);
        }
Tests