public void ScrollHappens() { int selectionStart = 1; String[] lines = new String[] { "Hello", "World" }; MockTextBox mock = new MockTextBox(); XMLNotepad notepad = new XMLNotepad(); Assert.IsFalse(mock.Scrolled); notepad.PutText(mock, lines, selectionStart); Assert.IsTrue(mock.Scrolled); }
public void CreateModel() { form = new XMLNotepad(); }