Esempio n. 1
0
        public void ComponentEditorPage_EnterLoadingMode_Invoke_IncrementsLoading()
        {
            using var control = new SubComponentEditorPage();
            control.EnterLoadingMode();
            Assert.Equal(1, control.Loading);

            // Call again.
            control.EnterLoadingMode();
            Assert.Equal(2, control.Loading);
        }
        public void ComponentEditorPage_EnterLoadingMode_Invoke_IncrementsLoading()
        {
            var page = new SubComponentEditorPage();

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

            // Call again.
            page.EnterLoadingMode();
            Assert.Equal(2, page.Loading);
        }
Esempio 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);
        }
        public void ComponentEditorPage_ExitLoadingMode_EnterLoadingMode_IncrementsLoading()
        {
            var page = new SubComponentEditorPage();

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

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