Example #1
0
        public void Save_Assembly_Strongly()
        {
            var moduleScope = new ModuleScope(true, true);

            bool failed = false;

            try
            {
                moduleScope.Save();
            }
            catch (Exception ex)
            {
                failed = true;
            }

            string path = "NIntercept.DynamicModule.dll";

            Assert.AreEqual(false, failed);
            Assert.IsTrue(File.Exists(path));

            File.Delete(path);
        }
Example #2
0
        public void Save_Assembly_With_Name()
        {
            var moduleScope = new ModuleScope("MyAssembly", "MyModule", true, false);

            bool failed = false;

            try
            {
                moduleScope.Save();
            }
            catch (Exception ex)
            {
                failed = true;
            }

            string path = "MyModule.dll";

            Assert.AreEqual(false, failed);
            Assert.IsTrue(File.Exists(path));

            File.Delete(path);
        }