Hi all,
I'm trying to perform unit testing on a control, but the test fails early:
RangeUserControl target = new RangeUserControl();
Assert.IsNotNull(target);
Assert.IsInstanceOfType(target, System.Type.GetType("RangeUserControl"));
RangeUserControl is the Class name of the control.
It fail on the 3rd row.
Any ideas?
Grateful for any tip!
Best Regards,kk
Morten Wennevik [C# MVP] - 24 Jan 2008 06:24 GMT
Hi kk,
If you do a
Type t1 = Type.GetType("RangeUserControl");
you will most likely find that t1 == null. You need to specify the fully
qualified type name (ie "RangeNamespace.RangeUserControl").

Signature
Happy Coding!
Morten Wennevik [C# MVP]
> Hi all,
> I'm trying to perform unit testing on a control, but the test fails early:
[quoted text clipped - 8 lines]
> Grateful for any tip!
> Best Regards,kk