Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-287921: Add class name to unit tests

$
0
0
Reporter Geert van Horrik (CatenaLogic) 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.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>