Example #1
0
        public int ExecuteHandler(bool verbose)
        {
            Globals.Verbose = verbose;

            _locator.SetupCom();

            return(0);
        }
        public void ExecuteHandler_RemovesComResolutionAssemblies()
        {
            string testDirectory      = TestContext.CurrentContext.TestDirectory;
            var    expectedAssemblies = _comResolutionAssemblies.Select(a => Path.Combine(testDirectory, a));

            // Ensure the output directory is dirty before the clean operation is tested.
            _locator.SetupCom();

            _command.ExecuteHandler(false);

            foreach (var assembly in expectedAssemblies)
            {
                Assert.That(assembly, Does.Not.Exist);
            }
        }