This project is read-only.

Interacting with the TestSurface

Jul 31, 2008 at 4:14 PM
Good day! Neat library. I went to start testing it, to replace some of the code I already have, and I discovered that the "TestSurface" isn't there anymore. In fact, the entire SilverlightTest base is not usable, since I have to derive from the UnitDriven base test class. Is there a way we can easily get at the testsurface?
Best regards,
Jul 31, 2008 at 5:38 PM
I'm not totally sure what you mean by this but I am going to guess that you mean when you create your own test application the test UI is not visible?

If this is the case then the soultion is pretty simple! There is a Control called TestEngine which can be added to your application. In our test project we set this control directly as the root visual in the application:
private void Application_Startup(object sender, StartupEventArgs e)
this.RootVisual = new UnitDriven.TestEngine(Assembly.GetExecutingAssembly());

This is only available in Silverlight, in .NET you will need to use another test framework for the majority of your testing needs such as NUnit. (UnitDriven only supports other test frameworks in .NET)