Example #1
0
        /// <summary>
        /// Instantiate a new Pyro class.
        /// </summary>
        private Pyro()
        {
            this.extensions              = new StringCollection();
            this.unparsedArgs            = new StringCollection();
            this.messageHandler          = new ConsoleMessageHandler("PYRO", "pyro.exe");
            this.showLogo                = true;
            this.tidy                    = true;
            this.delta                   = false;
            this.allowEmptyTransforms    = false;
            this.setAssemblyFileVersions = false;
            this.inputTransforms         = new Dictionary <string, string>();
            this.inputTransformsOrdered  = new List <string>();

            // set the message handler
            this.Message += new MessageEventHandler(this.messageHandler.Display);

            this.wixVariableResolver          = new WixVariableResolver();
            this.wixVariableResolver.Message += new MessageEventHandler(this.messageHandler.Display);

            // initialize new bind path variables etc
            this.targetSourcePaths     = new StringCollection();
            this.updatedSourcePaths    = new StringCollection();
            this.targetNamedBindPaths  = new NameValueCollection();
            this.updatedNamedBindPaths = new NameValueCollection();
        }
Example #2
0
 /// <summary>
 /// Instantiate a new Dark class.
 /// </summary>
 private Dark()
 {
     this.extensionList  = new StringCollection();
     this.messageHandler = new ConsoleMessageHandler("DARK", "dark.exe");
     this.showLogo       = true;
     this.tidy           = true;
 }
Example #3
0
File: pyro.cs Project: zooba/wix3
        /// <summary>
        /// Instantiate a new Pyro class.
        /// </summary>
        private Pyro()
        {
            this.extensions = new StringCollection();
            this.unparsedArgs = new StringCollection();
            this.messageHandler = new ConsoleMessageHandler("PYRO", "pyro.exe");
            this.showLogo = true;
            this.tidy = true;
            this.delta = false;
            this.allowEmptyTransforms = false;
            this.setAssemblyFileVersions = false;
            this.inputTransforms = new Dictionary<string, string>();
            this.inputTransformsOrdered = new List<string>();

            // set the message handler
            this.Message += new MessageEventHandler(this.messageHandler.Display);

            this.wixVariableResolver = new WixVariableResolver();
            this.wixVariableResolver.Message += new MessageEventHandler(this.messageHandler.Display);

            // initialize new bind path variables etc
            this.targetSourcePaths = new StringCollection();
            this.updatedSourcePaths = new StringCollection();
            this.targetNamedBindPaths = new NameValueCollection();
            this.updatedNamedBindPaths = new NameValueCollection();
        }
Example #4
0
 /// <summary>
 /// Instantiate a new Insignia class.
 /// </summary>
 private Insignia()
 {
     this.invalidArgs = new StringCollection();
     this.messageHandler = new ConsoleMessageHandler("INSG", "Insignia.exe");
     this.showLogo = true;
     this.tidy = true;
 }
Example #5
0
 /// <summary>
 /// Instantiate a new Insignia class.
 /// </summary>
 private Insignia()
 {
     this.invalidArgs    = new StringCollection();
     this.messageHandler = new ConsoleMessageHandler("INSG", "Insignia.exe");
     this.showLogo       = true;
     this.tidy           = true;
 }
Example #6
0
 /// <summary>
 /// Instantiate a new Dark class.
 /// </summary>
 private Dark()
 {
     this.extensionList = new StringCollection();
     this.invalidArgs = new StringCollection();
     this.messageHandler = new ConsoleMessageHandler("DARK", "dark.exe");
     this.showLogo = true;
     this.tidy = true;
 }
Example #7
0
 /// <summary>
 /// Instantiate a new Melt class.
 /// </summary>
 private Melt()
 {
     this.extensionList  = new StringCollection();
     this.messageHandler = new ConsoleMessageHandler("MELT", "melt.exe");
     this.showLogo       = true;
     this.tidy           = true;
     this.id             = null;
 }
Example #8
0
 /// <summary>
 /// Instantiate a new Heat class.
 /// </summary>
 private Heat()
 {
     this.extensionOptions = new StringCollection();
     this.extensions       = new ArrayList();
     this.extensionsByType = new SortedList();
     this.messageHandler   = new ConsoleMessageHandler("HEAT", "heat.exe");
     this.showLogo         = true;
 }
Example #9
0
 /// <summary>
 /// Instantiate a new ClickThroughBuilder class.
 /// </summary>
 private ClickThroughBuilder()
 {
     this.extensionOptions = new StringCollection();
     this.extensions       = new ArrayList();
     this.extensionsByType = new SortedList();
     this.messageHandler   = new ConsoleMessageHandler("CTB", "ct.exe");
     this.showLogo         = true;
 }
Example #10
0
 /// <summary>
 /// Instantiate a new Heat class.
 /// </summary>
 private Heat()
 {
     this.extensionOptions = new StringCollection();
     this.extensions = new ArrayList();
     this.extensionsByType = new SortedList();
     this.messageHandler = new ConsoleMessageHandler("HEAT", "heat.exe");
     this.indent = 4;
     this.showLogo = true;
 }
Example #11
0
 /// <summary>
 /// Instantiate a new Melt class.
 /// </summary>
 private Melt()
 {
     this.extensionList = new StringCollection();
     this.invalidArgs = new StringCollection();
     this.messageHandler = new ConsoleMessageHandler("MELT", "melt.exe");
     this.showLogo = true;
     this.tidy = true;
     this.id = null;
 }
Example #12
0
 /// <summary>
 /// Instantiate a new Candle class.
 /// </summary>
 private Candle()
 {
     this.sourceFiles        = new StringCollection();
     this.parameters         = new Hashtable();
     this.includeSearchPaths = new StringCollection();
     this.extensionList      = new StringCollection();
     this.showLogo           = true;
     this.messageHandler     = new ConsoleMessageHandler("CNDL", "candle.exe");
 }
Example #13
0
 /// <summary>
 /// Instantiate a new Torch class.
 /// </summary>
 private Torch()
 {
     this.extensionList = new StringCollection();
     this.inputFiles = new StringCollection();
     this.invalidArgs = new StringCollection();
     this.messageHandler = new ConsoleMessageHandler("TRCH", "torch.exe");
     this.showLogo = true;
     this.tidy = true;
     this.validationFlags = 0;
 }
Example #14
0
 /// <summary>
 /// Instantiate a new Torch class.
 /// </summary>
 private Torch()
 {
     this.inputFiles            = new StringCollection();
     this.messageHandler        = new ConsoleMessageHandler("TRCH", "torch.exe");
     this.preserveUnchangedRows = false;
     this.showLogo  = true;
     this.tidy      = true;
     this.xmlInputs = false;
     this.xmlOutput = false;
 }
Example #15
0
 /// <summary>
 /// Instantiate a new Torch class.
 /// </summary>
 private Torch()
 {
     this.extensionList   = new StringCollection();
     this.inputFiles      = new StringCollection();
     this.invalidArgs     = new StringCollection();
     this.messageHandler  = new ConsoleMessageHandler("TRCH", "torch.exe");
     this.showLogo        = true;
     this.tidy            = true;
     this.validationFlags = 0;
 }
Example #16
0
 /// <summary>
 /// Instantiate a new Smoke class.
 /// </summary>
 private Smoke()
 {
     this.extensionList  = new StringCollection();
     this.inputFiles     = new StringCollection();
     this.messageHandler = new ConsoleMessageHandler("SMOK", "smoke.exe");
     this.addDefault     = true;
     this.showLogo       = true;
     this.suppressICEs   = new StringCollection();
     this.tidy           = true;
     this.validator      = new Validator();
 }
Example #17
0
 /// <summary>
 /// Instantiate a new Lit class.
 /// </summary>
 private Lit()
 {
     this.basePaths         = new StringCollection();
     this.inputFiles        = new StringCollection();
     this.extensionList     = new StringCollection();
     this.showLogo          = true;
     this.messageHandler    = new ConsoleMessageHandler("LIT", "lit.exe");
     this.extensionList     = new StringCollection();
     this.localizationFiles = new StringCollection();
     this.sourcePaths       = new StringCollection();
 }
Example #18
0
 /// <summary>
 /// Instantiate a new Candle class.
 /// </summary>
 private Candle()
 {
     this.invalidArgs        = new StringCollection();
     this.sourceFiles        = new StringCollection();
     this.parameters         = new Dictionary <string, string>();
     this.platform           = Platform.X86;
     this.includeSearchPaths = new StringCollection();
     this.extensionList      = new StringCollection();
     this.showLogo           = true;
     this.messageHandler     = new ConsoleMessageHandler("CNDL", "candle.exe");
     this.allowPerSourceOutputSpecification = false;
 }
Example #19
0
File: lit.cs Project: zooba/wix3
 /// <summary>
 /// Instantiate a new Lit class.
 /// </summary>
 private Lit()
 {
     this.bindPaths = new StringCollection();
     this.inputFiles = new StringCollection();
     this.invalidArgs = new StringCollection();
     this.extensionList = new StringCollection();
     this.showLogo = true;
     this.messageHandler = new ConsoleMessageHandler("LIT", "lit.exe");
     this.extensionList = new StringCollection();
     this.localizationFiles = new StringCollection();
     this.sourcePaths = new StringCollection();
 }
Example #20
0
 /// <summary>
 /// Instantiate a new Candle class.
 /// </summary>
 private Candle()
 {
     this.invalidArgs = new StringCollection();
     this.sourceFiles = new StringCollection();
     this.parameters = new Hashtable();
     this.platform = Platform.X86;
     this.includeSearchPaths = new StringCollection();
     this.extensionList = new StringCollection();
     this.showLogo = true;
     this.messageHandler = new ConsoleMessageHandler("CNDL", "candle.exe");
     this.fipsCompliant = false;
     this.allowPerSourceOutputSpecification = false;
 }
Example #21
0
        /// <summary>
        /// Instantiate a new Pyro class.
        /// </summary>
        private Pyro()
        {
            this.messageHandler  = new ConsoleMessageHandler("PYRO", "pyro.exe");
            this.showLogo        = true;
            this.tidy            = true;
            this.inputTransforms = new Hashtable();

            // set the message handler
            this.Message += new MessageEventHandler(this.messageHandler.Display);

            this.wixVariableResolver          = new WixVariableResolver();
            this.wixVariableResolver.Message += new MessageEventHandler(this.messageHandler.Display);
        }
Example #22
0
 /// <summary>
 /// Instantiate a new Smoke class.
 /// </summary>
 private Smoke()
 {
     this.extensionList = new StringCollection();
     this.ices = new StringCollection();
     this.inputFiles = new StringCollection();
     this.invalidArgs = new StringCollection();
     this.messageHandler = new ConsoleMessageHandler("SMOK", "smoke.exe");
     this.addDefault = true;
     this.showLogo = true;
     this.suppressICEs = new StringCollection();
     this.tidy = true;
     this.validator = new Validator();
 }
        public void WriteMessage_Writes()
        {
            string testMessage = "HelloWorld";

            IHelloWorldMessageHandler messageHandler = new ConsoleMessageHandler();
            StringWriter sWriter = new StringWriter();

            Console.SetOut(sWriter);

            messageHandler.WriteMessage(testMessage);

            string messageWritten = sWriter.ToString();

            Assert.IsTrue(messageWritten.Contains(testMessage));
        }
Example #24
0
        /// <summary>
        /// Instantiate a new Light class.
        /// </summary>
        private Light()
        {
            this.bindPaths         = new StringCollection();
            this.extensionList     = new StringCollection();
            this.localizationFiles = new StringCollection();
            this.messageHandler    = new ConsoleMessageHandler("LGHT", "light.exe");
            this.inputFiles        = new StringCollection();
            this.invalidArgs       = new StringCollection();
            this.unparsedArgs      = new StringCollection();
            this.sourcePaths       = new StringCollection();
            this.showLogo          = true;
            this.tidy            = true;
            this.sectionIdOnRows = true;

            this.wixVariableResolver          = new WixVariableResolver();
            this.wixVariableResolver.Message += new MessageEventHandler(this.messageHandler.Display);
        }
Example #25
0
        /// <summary>
        /// Instantiate a new Light class.
        /// </summary>
        private Light()
        {
            this.basePaths         = new StringCollection();
            this.extensionList     = new StringCollection();
            this.localizationFiles = new StringCollection();
            this.messageHandler    = new ConsoleMessageHandler("LGHT", "light.exe");
            this.inputFiles        = new StringCollection();
            this.sourcePaths       = new StringCollection();
            this.showLogo          = true;
            this.suppressICEs      = new StringCollection();
            this.tidy = true;

            this.wixVariableResolver          = new WixVariableResolver();
            this.wixVariableResolver.Message += new MessageEventHandler(this.messageHandler.Display);

            this.validator = new Validator();
        }
Example #26
0
        /// <summary>
        /// Instantiate a new Light class.
        /// </summary>
        private Light()
        {
            this.bindPaths = new StringCollection();
            this.extensionList = new StringCollection();
            this.localizationFiles = new StringCollection();
            this.messageHandler = new ConsoleMessageHandler("LGHT", "light.exe");
            this.inputFiles = new StringCollection();
            this.invalidArgs = new StringCollection();
            this.unparsedArgs = new StringCollection();
            this.sourcePaths = new StringCollection();
            this.showLogo = true;
            this.tidy = true;
            this.sectionIdOnRows = true;

            this.wixVariableResolver = new WixVariableResolver();
            this.wixVariableResolver.Message += new MessageEventHandler(this.messageHandler.Display);
        }
        public async Task ConsoleMessageHandlerTestWithEmptyMessage()
        {
            var mockInput = new Mock <IUserInput>(MockBehavior.Strict);

            mockInput.Setup(m => m.GetInput()).Returns(string.Empty);
            IUserInput            userInput             = mockInput.Object;
            ConsoleMessageHandler consoleMessageHandler = new ConsoleMessageHandler(userInput);
            await consoleMessageHandler.InitAsync().ConfigureAwait(false);

            var task = Task.Run(async() => await consoleMessageHandler.RunAsync().ConfigureAwait(false));
            await Task.Delay(1000).ConfigureAwait(false);

            Assert.True(consoleMessageHandler.IsRunning);
            mockInput.Verify(m => m.GetInput(), Times.AtLeastOnce);
            await consoleMessageHandler.ShutdownAsync().ConfigureAwait(false);

            task.Wait();
            Assert.False(consoleMessageHandler.IsRunning);
        }
        public async Task ConsoleMessageHandlerTest()
        {
            var mockInput = new Mock <IUserInput>(MockBehavior.Strict);

            mockInput.Setup(m => m.GetInput()).Returns("ping");
            IUserInput            userInput             = mockInput.Object;
            ConsoleMessageHandler consoleMessageHandler = new ConsoleMessageHandler(userInput);

            consoleMessageHandler.MessageReceived += ConsoleMessageHandler_MessageReceived;
            await consoleMessageHandler.InitAsync().ConfigureAwait(false);

            var task = Task.Run(async() => await consoleMessageHandler.RunAsync().ConfigureAwait(false));
            await Task.Delay(50).ConfigureAwait(false);

            consoleMessageHandler.IsRunning.Should().BeTrue();
            mockInput.Verify(m => m.GetInput(), Times.AtLeastOnce);
            await consoleMessageHandler.ShutdownAsync().ConfigureAwait(false);

            task.Wait();
            consoleMessageHandler.IsRunning.Should().BeFalse();
        }
Example #29
0
 /// <summary>
 /// Instantiate a new Retina class.
 /// </summary>
 private Retina()
 {
     this.invalidArgs    = new StringCollection();
     this.messageHandler = new ConsoleMessageHandler("RETI", "retina.exe");
     this.showLogo       = true;
 }
Example #30
0
File: retina.cs Project: zooba/wix3
 /// <summary>
 /// Instantiate a new Retina class.
 /// </summary>
 private Retina()
 {
     this.invalidArgs = new StringCollection();
     this.messageHandler = new ConsoleMessageHandler("RETI", "retina.exe");
     this.showLogo = true;
 }