[TestFixtureTearDown] public virtual void testFixtureTearDown()
        {
            port.tcpClient().assert_Not_Null();
            apiCassini.stop();
            port.tcpClient().assert_Null();

            webRoot.assert_Folder_Exists();                                  // make sure we didn't delete this by accident (since this is the actualy TM code :)  )

            this.tmProxy().set_Custom_Path_XmlDatabase("");                  // reset this value
            apiCassini.appDomain().unLoadAppDomain();                        // unload the AppDomain to remove any file locks that might have existed

            path_XmlLibraries.files(true).files_Attribute_ReadOnly_Remove(); // Remove ReadOnly attributes added by git
            Files.delete_Folder_Recursively(path_XmlLibraries);              // remove temp XmlDatabase folder
            path_XmlLibraries.folder_Wait_For_Deleted();                     // give is sometime
            if (path_XmlLibraries.folder_Exists())
            {
                path_XmlLibraries.startProcess();
            }
            //path_XmlLibraries.assert_Folder_Doesnt_Exist();                // double check the deletion
        }
示例#2
0
文件: TM_Proxy.cs 项目: rbg13/Master
 public TM_Proxy(API_Cassini apiCassini)
 {
     this.apiCassini = apiCassini;
     o2Proxy         = apiCassini.appDomain().o2Proxy();
 }