public void VisualTest() { //---------------Set up test pack------------------- var hints = new UIStyleHints(); hints.ButtonHints.MinimumHeight = 35; GlobalUIRegistry.UIStyleHints = hints; //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- (new FormExceptionNotifier()).Notify(new Exception("This is a test"), "More information here", "Testing"); //---------------Test Result ----------------------- }
public void Constructor_SetsUpPropertyObjects() { //---------------Set up test pack------------------- var hints = new UIStyleHints(); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- //---------------Test Result ----------------------- Assert.IsNotNull(hints.ButtonHints, "ButtonHints not set"); Assert.IsNotNull(hints.CheckBoxHints, "CheckBoxHints not set"); Assert.IsNotNull(hints.ComboBoxHints, "ComboBoxHints not set"); Assert.IsNotNull(hints.DateTimePickerHints, "DateTimePickerHints not set"); Assert.IsNotNull(hints.GridHints, "GridHints not set"); Assert.IsNotNull(hints.LabelHints, "LabelHints not set"); Assert.IsNotNull(hints.LayoutHints, "LayoutHints not set"); Assert.IsNotNull(hints.TextBoxHints, "TextBoxHints not set"); Assert.IsNotNull(hints.FormHints, "FormHints is not set"); Assert.IsNotNull(hints.StaticDataEditorManagerHints, "StaticDataEditorManagerHints is not set"); }