TestDescriptionAttribute(TestDescription="hi")
So for that particular test, the description will be hi
.
Put it on the top of a method and see whether it works.
Ngu Soon Hui
2009-10-04 10:55:31
TestDescriptionAttribute(TestDescription="hi")
So for that particular test, the description will be hi
.
Put it on the top of a method and see whether it works.
As @Ngu has said, put it on the top of a test method
[TestMethod()]
[Description( "PingTest Check" )]
public void PingTest () {
Ponger target = new Ponger();
string expected = "Pong";
string actual;
actual = target.Ping();
Assert.AreEqual( expected, actual );
}
EDIT: TestDescriptionAttribute is from WebTesting
namespace, which should not be applied for unit testing. Use the DescriptionAttribute instead, which is part of the UnitTesting
namespace.
See the modified code above & I am sure, it will work.
EDIT2: To find something like that, look at the classes in the same namespace. That is how classes are arranged, so that one can find it easily.