MockTextBox.cs


 using System; 
namespace Notepad
{
public class MockTextBox: ITestTextBox
{
private Boolean scrolled = false;
public MockTextBox()
{
}
public int SelectionStart {
get { return 1; }
set {}
}
public string[] Lines {
get { return new string[0]; }
set { scrolled = false; }
}
public void ScrollToCaret() {
scrolled = true;
}
public Boolean Scrolled {
get {
return 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