Example #1
0
        public async Task CanGenerateTypedElement_ForCustomControlInRemoteApp()
        {
            await using var app = App.StartRemote <XAMLTest.TestApp.App>();
            IWindow?window = await app.GetMainWindow();

            Assert.IsNotNull(window);

            IVisualElement <ColorZone> colorZone = await window.GetElement <ColorZone>("/ColorZone");

            Assert.AreEqual(ColorZoneMode.PrimaryMid, await colorZone.GetMode());
        }