[Mono-bugs] [Bug 661996] Hexadecimal NumericUpDown control only accepts the digits 0-9
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Jan 9 17:39:30 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=661996
https://bugzilla.novell.com/show_bug.cgi?id=661996#c4
--- Comment #4 from Thomas Goldstein <stifu at free.fr> 2011-01-09 22:39:29 UTC ---
Unit tests are useful things indeed.
I wrote this little test method:
[Test] // bug 661996
public void TestHexadecimalText ()
{
Thread.CurrentThread.CurrentCulture = new CultureInfo ("en-US");
NumericUpDown nud = new NumericUpDown ();
nud.Maximum = 100;
nud.Hexadecimal = true;
nud.Text = "A";
Assert.AreEqual ("A", nud.Text, "#1");
Assert.AreEqual (10, nud.Value, "#2");
nud.Text = "10";
Assert.AreEqual ("10", nud.Text, "#3");
Assert.AreEqual (16, nud.Value, "#4");
}
Before the patch, none of the tests pass.
After the patch, they all pass except #2 (value is 0, should be 10). Weird. I
don't know what's causing this yet, I'll look into it more later.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list