Beispiel #1
0
        public void LoadAssembly()
        {
            var mockAssemblyPath = System.IO.Path.Combine(TestContext.CurrentContext.TestDirectory, MOCK_ASSEMBLY);

#if NETCOREAPP1_1
            _driver = new NUnitNetStandardDriver();
#else
            _driver = new NUnit3FrameworkDriver(AppDomain.CurrentDomain);
#endif
            _driver.Load(mockAssemblyPath, new Dictionary <string, object>());
        }
        public void LoadAssembly()
        {
            var mockAssemblyPath = System.IO.Path.Combine(TestContext.CurrentContext.TestDirectory, MOCK_ASSEMBLY);

#if NETCOREAPP1_1 || NETCOREAPP2_0
            _driver = new NUnitNetStandardDriver();
#else
            var assemblyName = typeof(NUnit.Framework.TestAttribute).Assembly.GetName();
            _driver = new NUnit3FrameworkDriver(AppDomain.CurrentDomain, assemblyName);
#endif
            _driver.Load(mockAssemblyPath, new Dictionary <string, object>());
        }