On 5/16/07, Collin Winter <[EMAIL PROTECTED]> wrote:
> > -> unittest - very useful to give a better overview of the result of
> > unit test. People pointed us at a Visual C# MVP tutorial
> > http://www.atmarkit.co.jp/fdotnet/nagile/nagile02/nagile02_03.html
>
> I don't know what "a better overview of the result of unit test"
> means. Also, the linked page is in Japanese.
The page illustrates how a unit test can serve as an
executable specification. The third box of code is a
TestFixture class with methods like this one:
>> [Test][ExpectedException(typeof(ArgumentException))]
>> public void 一年未満はエラーになる()
>> {
>> Date date = new Date(0, 1, 1);
>> }
The name translates to something like "if the year is
less than one, it's an error". Interesting. Kind of a weird
thing to do; ordinarily you wouldn't want method names
that take so long to type. But a unit test method is a
special case.
The mix of Japanese and English is not as visually
jarring as I expected. It actually looks kinda cool. :)
-j
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com