Ejemplo n.º 1
0
        public void DemonstrateAccessingAMsmqTestControllerConfigElement()
        {
            MessageQueueConfigurationElement configElement = BenchTestController.GetTestController <MsmqTestController>()
                                                             .GetConfigurationElement(BenchConfigurationSettings.IntegrationTest1MessageQueueName);

            Assert.AreEqual(@".\private$\IntegrationTestsMsmqUtilityUnitTestQueue1", configElement.Path);
        }
Ejemplo n.º 2
0
        public void DemonstrateAccessingAProcessTestControllerConfigElement()
        {
            ProcessConfigurationElement configElement = BenchTestController.GetTestController <ProcessTestController>()
                                                        .GetConfigurationElement(BenchConfigurationSettings.ProcessNameNotepad);

            Assert.AreEqual(@"C:\Windows\System32\notepad.exe", configElement.PathToExe);
            Assert.AreEqual("5000", configElement.StartDelayInMilliseconds);

            Thread.Sleep(5000); //Wait for processes to start so that they can be shutdown during Cleanup();
        }
Ejemplo n.º 3
0
        public void DemonstrateGettingAListOfTestMessageQueues()
        {
            List <MessageQueueConfigurationElement> messageQueues = BenchTestController.GetTestController <MsmqTestController>().MessageQueues;

            Assert.AreEqual(3, messageQueues.Count);
        }