Exemplo n.º 1
0
        private async Task ExampleUsage1()
        {
            // First create a default instance and pass it as a singleton to the injection logic:
            AssertVisually.SetupDefaultSingletonInDebugMode();

            // Create and show a UI based on the fields in MyUserModelv1:
            gameObject.AddChild(await NewUiFor <MyUserModelv1>());
            await AssertVisually.AssertNoVisualChange("Ui for MyUserModelv1");
        }
Exemplo n.º 2
0
 private async Task ShowAllDialogs()
 {
     AssertVisually.SetupDefaultSingletonInDebugMode();
     ViewStackHelper.MainViewStack().ShowView("Canvas/DefaultViewStackView");
     await ShowCancelConfirmDialog();
     await ShowInfoDialog();
     await ShowWarningDialog();
     await ShowErrorDialog();
     await UseDialogLoaderManually();
 }
Exemplo n.º 3
0
        public override IEnumerator RunTest()
        {
            AssertVisually.SetupDefaultSingletonInDebugMode();

            yield return(ShowCancelConfirmDialog().AsCoroutine());

            yield return(ShowInfoDialog().AsCoroutine());

            yield return(ShowWarningDialog().AsCoroutine());

            yield return(ShowErrorDialog().AsCoroutine());

            yield return(UseDialogLoaderManually().AsCoroutine());
        }