[nem-en] [NemerleUnit] What about other attributes available in
NUnit?
Andrey Khropov
andrey.khropov at gmail.com
Fri Feb 2 20:08:51 CET 2007
To fully explore all the features present in NUnit we need to support other
notions present in NUnit in form of attributes:
1) TestFixture
AFAIKS the current implementation implicitly adds this attribute to the
current enclosing type when test macro is executed. Maybe it's Ok or maybe
there should be a testfixture macro (for consistency with test macro style):
testfixture MyFixture // translated to [TestFixture] module MyFixture
{
...
}
2) TestFixtureSetup, TestFixtureTearDown.
In the same manner:
testfixture MyFixture
{
testfixture setup
{
...
}
testfixture teardown
{
...
}
setup
{
...
}
test Test1
{
...
}
...
}
3) ExpectedException, Platform, Category, Explicit, Ignore
These cases are more complicated. Can we add attributes like always:
[ExpectedException(typeof(InvalidOperationException))]
test MyTest
{
}
?
4) Suite.
This is deprecated. I woundn't bother to implement it at all.
--
AKhropov
More information about the devel-en
mailing list