Exemple #1
0
        public void TestSetText()
        {
            AddStep("set text", () => textContainer.Text = "first text");
            AddAssert("text flow has 2 sprite texts", () => textContainer.ChildrenOfType <SpriteText>().Count() == 2);

            AddStep("set text", () => textContainer.Text = "second text");
            AddAssert("text flow has 2 sprite texts", () => textContainer.ChildrenOfType <SpriteText>().Count() == 2);
        }