public void SetUp()
		{
			string path = new Uri(Assembly.GetExecutingAssembly().EscapedCodeBase).LocalPath;

			_localDomain = AppDomain.CreateDomain("NewDomain");
			_localDomain.Load(typeof(DataAccessor).Assembly.GetName());
			_localTest = (DataAccessorBuilderTest)_localDomain.CreateInstanceFromAndUnwrap(path, GetType().FullName);
		}
示例#2
0
        public void SetUp()
        {
            string path = new Uri(Assembly.GetExecutingAssembly().EscapedCodeBase).LocalPath;

            _localDomain = AppDomain.CreateDomain("NewDomain");
            _localDomain.Load(typeof(DataAccessor).Assembly.GetName());
            _localTest = (DataAccessorBuilderTest)_localDomain.CreateInstanceFromAndUnwrap(path, GetType().FullName);
        }