A: 
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
Could you give me a bit more context? I haven't used this before so I'm not sure where to put the code. Thanks! (Note that I updated the question with the attempt.)
Adam Kane
+1  A: 

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.

shahkalpesh
That doesn't compile. Error: Error 1 GlobalSimTests Attribute 'TestDescription' is not valid on this declaration type. It is only valid on 'class' declarations. C:\Users\Adam\Projects\GGS_Xna\GlobalSimTests\PongerTest.cs
Adam Kane
I am sorry, I should have looked into it in detail. See the modified code and comments above.
shahkalpesh
Note: [Description( "PingTest Check" )should be:[Description( "PingTest Check" )]
Adam Kane
@Adam: Yes, I have corrected it.
shahkalpesh