Beispiel #1
0
        public void TestRenderTextBox()
        {
            var app = new CliTestHarness(this.TestContext, 8, 1);

            app.QueueAction(() =>
            {
                app.LayoutRoot.Add(new TextBox()
                {
                    Value = "SomeText".ToWhite()
                }).Fill();
                app.Stop();
            });

            app.Start().Wait();
            Assert.IsTrue(app.Find("SomeText".ToWhite()).HasValue);

            app.AssertThisTestMatchesLKG();
        }
Beispiel #2
0
        public void TestRenderTextBox()
        {
            var app = new CliTestHarness(this.TestContext, 9, 1);

            app.InvokeNextCycle(async() =>
            {
                app.LayoutRoot.Add(new TextBox()
                {
                    Value = "SomeText".ToWhite()
                }).Fill();
                await app.RequestPaintAsync();
                Assert.IsTrue(app.Find("SomeText".ToWhite()).HasValue);
                app.Stop();
            });

            app.Start().Wait();
            app.AssertThisTestMatchesLKG();
        }