Ejemplo n.º 1
0
      public Loader(string assemblyPathName) {
         _assemblyName = AssemblyName.GetAssemblyName(assemblyPathName);
         _listener = new TestEventSink(this);
         var appDomain = CreateRemoteDomain();

         try {
            using (var remoteLoader = LoadAssembly(appDomain)) {
               TestFixtureInfos = remoteLoader.TestFixtureInfos;
               _modifiedTimeStamp = remoteLoader.ModifiedTimeStamp;
            }
         }
         catch(Exception ex) {
            Debug.WriteLine(ex);
            var directory = appDomain.BaseDirectory;
            Debug.WriteLine(string.Format("Remote AppDomain's base directory: {0}", directory));
         }
         finally {
            TearDownAppDomain(appDomain);
         }
      }
Ejemplo n.º 2
0
        public Loader(string assemblyPathName)
        {
            _assemblyName = AssemblyName.GetAssemblyName(assemblyPathName);
            _listener     = new TestEventSink(this);
            var appDomain = CreateRemoteDomain();

            try {
                using (var remoteLoader = LoadAssembly(appDomain)) {
                    TestFixtureInfos   = remoteLoader.TestFixtureInfos;
                    _modifiedTimeStamp = remoteLoader.ModifiedTimeStamp;
                }
            }
            catch (Exception ex) {
                Debug.WriteLine(ex);
                var directory = appDomain.BaseDirectory;
                Debug.WriteLine(string.Format("Remote AppDomain's base directory: {0}", directory));
            }
            finally {
                TearDownAppDomain(appDomain);
            }
        }