Exemplo n.º 1
0
        public void ComponentEditorPage_ExitLoadingMode_Invoke_DoesNotDecrementLoading()
        {
            using var control = new SubComponentEditorPage();
            control.ExitLoadingMode();
            Assert.Equal(0, control.Loading);

            // Call again.
            control.ExitLoadingMode();
            Assert.Equal(0, control.Loading);
        }
Exemplo n.º 2
0
        public void ComponentEditorPage_ExitLoadingMode_Invoke_DoesNotDecrementLoading()
        {
            var page = new SubComponentEditorPage();

            page.ExitLoadingMode();
            Assert.Equal(0, page.Loading);

            // Call again.
            page.ExitLoadingMode();
            Assert.Equal(0, page.Loading);
        }
Exemplo n.º 3
0
        public void ComponentEditorPage_ExitLoadingMode_EnterLoadingMode_IncrementsLoading()
        {
            using var control = new SubComponentEditorPage();
            control.ExitLoadingMode();
            Assert.Equal(0, control.Loading);

            control.EnterLoadingMode();
            Assert.Equal(1, control.Loading);
        }
Exemplo n.º 4
0
        public void ComponentEditorPage_ExitLoadingMode_EnterLoadingMode_IncrementsLoading()
        {
            var page = new SubComponentEditorPage();

            page.ExitLoadingMode();
            Assert.Equal(0, page.Loading);

            page.EnterLoadingMode();
            Assert.Equal(1, page.Loading);
        }