Reporter | Geert van Horrik (CatenaLogic) |
---|---|
Created | Jan 22, 2012 5:24:28 PM |
Updated | Jan 22, 2012 5:24:28 PM |
Priority | Normal |
Type | Feature |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Victor Kropp (victor.kropp) |
Subsystem | Unit Testing |
Affected versions | 6.1 |
Fixed in build | No Fixed in build |
In the Unit Test Sessions, only the namespace + final class name is included. However, I use this naming convention for my unit tests:
public class MyClassFacts
{
[TestClass]
public class TheConstructor
{
[TestMethod]
public void ThrowsArgumentNullExceptionForNullName()
{
// Unit test logic
}
}
[TestClass]
public class TheAddMethod()
{
[TestMethod]
public void Returns4ResultFor1And3()
{
// Unit test logic
}
}
}
Then the Unit Test Sessions contains lines like these:
[Namespace].TheConstructor.ThrowsArgumentNullExceptionForNullName
However, I would like to see this:
[Namespace].MyClassFacts.TheConstructor.ThrowsArgumentNullExceptionForNullName
So, if a [TestClass] is located in another class (thus is a nested class), please include the containing class name as well.
public class MyClassFacts
{
[TestClass]
public class TheConstructor
{
[TestMethod]
public void ThrowsArgumentNullExceptionForNullName()
{
// Unit test logic
}
}
[TestClass]
public class TheAddMethod()
{
[TestMethod]
public void Returns4ResultFor1And3()
{
// Unit test logic
}
}
}
Then the Unit Test Sessions contains lines like these:
[Namespace].TheConstructor.ThrowsArgumentNullExceptionForNullName
However, I would like to see this:
[Namespace].MyClassFacts.TheConstructor.ThrowsArgumentNullExceptionForNullName
So, if a [TestClass] is located in another class (thus is a nested class), please include the containing class name as well.