Nope, not it. Good guess but that is not the issue here. Not only are the
classes public but the test wiz doesn't always get down the namespace tree
to where the class resides in the first place. This is a WPF/CAB produced
solution.
Here's an example of a class that is completely invisible to the test wiz.
This class is derived from an interface that was declared in
MyNameSpace.Application.Interface.
The project is named Application. It has a number of classes and interfaces
in it. This is one of those classes, derived from an interface which resides
in a different project, Application.Interface.
In project Application.Interface -
namespace MyNameSpace.Application.Interface
{
public interface ILTrace
{
bool WriteLine( string message );
}
}
In project Application -
using System;
namespace MyNameSpace.Application.Services
{
public class LTrace : Interface.ILTrace
{
public bool WriteLine( string message )
{
bool bReturn;
try
{
System.Diagnostics.Debug.WriteLine( message);
bReturn = true;
}
catch (Exception e)
{
bReturn = false;
}
return bReturn;
}
}
}
This compiles and executes in the desired fashion.
If I actuate VS05's menu item Test->New Test and select Unit Test Wizard
from the presented templates, it presents a Create Unit Tests form with a
number of projects populating a tree. If I open the tree item that
corresponds to the project that contains the above class I see a number of
cascading items corresponding to the namespaces that are present in the
project but this tree item list is incomplete. The root item Application has
a single child of MyNameSpace which has a single child of Application and
this child has no children. It should have had a child of Services which
should have had a child of LTrace. I should have been able to get down to a
methods sub item and then pick WriteLine as a method for which a unit test
would be generated.
I've been going around this for a couple of days and have made zero progress
on resolving the issue. I'm betting one of you wizard's out there knows what
silly little thing I've done and can correct this unworthy egg's
foolishness.