Using Resharper 5 and Visual Studio 2010, C#.
The class StackOverflow in the following code doesn’t yet exist, and yet Resharper doesn’t offer context options like “Create nested class” for it. Could you explain why?
namespace StackOverflow
{
public class SomeSetOfTests
{
public void AFirstTest()
{
var overflow = new StackOverflow();
}
}
}
You’re in a namespace called
StackOverflow. That’s bound to cause problems. I mean, you could create a class with the same name – the following compiles:… but it’s a really bad idea.
I would guess that ReSharper is trying to save you from your folly.