public void TestLargeTextValueEditorInitialization() { AsyncContext.Run( async() => { var editor = new LargeValueEditor("Dummy", new TestLargeTextValue()); await(Task) typeof(LargeValueEditor).GetMethod("SetEditorValue", BindingFlags.NonPublic | BindingFlags.Instance).Invoke(editor, null); editor.TextEditor.Text.ShouldBe(TestLargeTextValue.TextValue); editor.TabText.Visibility.ShouldBe(Visibility.Visible); editor.TabRaw.Visibility.ShouldBe(Visibility.Visible); }); }
public void TestLargeTextValueEditorInitialization() { AsyncContext.Run( async () => { var editor = new LargeValueEditor("Dummy", new TestLargeTextValue()); await (Task)typeof(LargeValueEditor).GetMethod("SetEditorValue", BindingFlags.NonPublic | BindingFlags.Instance).Invoke(editor, null); editor.TextEditor.Text.ShouldBe(TestLargeTextValue.TextValue); editor.TabText.Visibility.ShouldBe(Visibility.Visible); editor.TabRaw.Visibility.ShouldBe(Visibility.Visible); }); }