public void test_openCirDataControlUsingO2Messages() { // get control var ascxControlName = "Cir Analysis"; O2Messages.openAscxAsForm(typeof(ascx_CirAnalysis).FullName, ascxControlName); O2Messages.executeOnAscxSync(ascxControlName, "loadO2CirDataFile", new [] { DI.config.ExecutingAssembly }); var returnedData = O2Messages.executeOnAscxSync(ascxControlName, "getCirDataAnalysisObject", new string[0]); Assert.That(returnedData != null && returnedData is ICirDataAnalysis, "probs with returned data"); var cirData = (ICirDataAnalysis)returnedData; Assert.That(cirData.dCirClass.Count > 0, "There were no classes loaded in CirDataAnalysis object"); O2Messages.closeAscxParent(ascxControlName); }