Exemple #1
0
 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);
 }
Exemple #2
0
 public void CreateModel()
 {
     form = new XMLNotepad();
 }