[Mono-winforms-list] MaskedTextBox.GetCharFromPosition Method

Jackson Harper jackson at ximian.com
Thu May 3 13:43:50 EDT 2007


On Thu, 2007-05-03 at 13:58 -0400, aatdark at aol.com wrote:
> hi
> concerning 1.)
> Is there already an excisiting nunit file forthe MaskedTextBox ? I
> can't find one
> 

You should probably start by unit testing TextBoxBase, I would just add
your tests to TextBoxTest at first, then we can add some more to
MaskedTextBox later.  But it is best to test from the bottom up.  Since
you will have to implement this feature from the bottom up.

Cheers,
Jackson


> 
> yours
> berni
> 
> -----Original Message-----
> From: Jackson Harper <jackson at ximian.com>
> To: aatdark at aol.com
> Cc: mono-winforms-list at lists.ximian.com
> Sent: Thu, 3 May 2007 7:17 pm
> Subject: Re: [Mono-winforms-list] MaskedTextBox.GetCharFromPosition
> Method
> 
> 
> 
> These methods just need to be implemented in the base TextBoxBase class.
> 
> All you should need to do is:
> 
> 
> 
> 1.  Write lots of unit tests
> 
> 2.  Implement using TextControl::LineTagToCharIndex
> 
> 3.  Remove the notyet ifdef in MaskedTextBox
> 
> 4.  Send your patches to the list
> 
> 
> 
> Please note, don't proceed to step 2 before completing step 1.
> 
> 
> 
> Good luck!
> 
> Jackson
> 
> 
> 
> 
> 
> On Thu, 2007-05-03 at 13:33 -0400, aatdark at aol.com wrote:
> 
> > Hi
> 
> > 
> 
> > Is anyone working at the MaskedTextBox.GetCharFromPosition Method  at
> 
> > the moment?
> 
> > I think implementing this will affect TextControl.cs class Document
> 
> > too.
> 
> > 
> 
> > I'm going to try it if nobody is on it 
> 
> > 
> 
> > yours
> 
> > berni
> 
> > 
> 
> > 
> 
> > ______________________________________________________________________
> 
> > AOL now offers free email to everyone. Find out more about what's free
> 
> > from AOL at AOL.com.
> 
> > 
> 
> > _______________________________________________
> 
> > Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> 
> > http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> 
> 
> 
> 
> ______________________________________________________________________
> AOL now offers free email to everyone. Find out more about what's free
> from AOL at AOL.com.
> 
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list



More information about the Mono-winforms-list mailing list