public void ComponentEditorPage_Loading_Set_GetReturnsExpected(int value, bool expectedIsLoading)
        {
            var page = new SubComponentEditorPage
            {
                Loading = value
            };

            Assert.Equal(value, page.Loading);
            Assert.Equal(expectedIsLoading, page.IsLoading());

            // Set same.
            page.Loading = value;
            Assert.Equal(value, page.Loading);
            Assert.Equal(expectedIsLoading, page.IsLoading());
        }
Exemple #2
0
        public void ComponentEditorPage_Loading_Set_GetReturnsExpected(int value, bool expectedIsLoading)
        {
            using var control = new SubComponentEditorPage
                  {
                      Loading = value
                  };
            Assert.Equal(value, control.Loading);
            Assert.Equal(expectedIsLoading, control.IsLoading());
            Assert.False(control.IsHandleCreated);

            // Set same.
            control.Loading = value;
            Assert.Equal(value, control.Loading);
            Assert.Equal(expectedIsLoading, control.IsLoading());
            Assert.False(control.IsHandleCreated);
        }
        public void ComponentEditorPage_IsLoading_Invoke_ReturnsFalse()
        {
            var page = new SubComponentEditorPage();

            Assert.False(page.IsLoading());
        }
Exemple #4
0
 public void ComponentEditorPage_IsLoading_Invoke_ReturnsFalse()
 {
     using var control = new SubComponentEditorPage();
     Assert.False(control.IsLoading());
     Assert.False(control.IsHandleCreated);
 }