TestScroll.cs


 using System; 
using NUnit.Framework;
namespace Notepad
{
[TestFixture] public class TestScroll: Assertion
{
[Test] public void HookUp() {
Assert("hooked up", true);
}
[Test] public void ScrollHappens() {
int selectionStart = 1;
string[] lines = new String[] { "hello", "world" };
MockTextBox mock = new MockTextBox();
XMLNotepad notepad = new XMLNotepad();
Assert("no scroll", !mock.Scrolled);
notepad.PutText(mock, lines, selectionStart);
Assert("scroll happens", mock.Scrolled);
}
}
}



Extreme Programming Adventures in C#
Javaв„ў EE 5 Tutorial, The (3rd Edition)
ISBN: 735619492
EAN: 2147483647
Year: 2006
Pages: 291

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net