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()); }
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()); }
public void ComponentEditorPage_IsLoading_Invoke_ReturnsFalse() { using var control = new SubComponentEditorPage(); Assert.False(control.IsLoading()); Assert.False(control.IsHandleCreated); }