public void WhenEmptyDateTime()
        {
            MockConsoleOutput mockConsole = new MockConsoleOutput();

            var exc = ExceptionAssertHelper.Throws<ConfigurationException>(() => TraceEventServiceConfiguration.Load("Configurations\\Console\\ConsoleEmptyDateTimeFormat.xml"));

            StringAssert.Contains(exc.ToString(), "The 'dateTimeFormat' attribute is invalid - The value '' is invalid according to its datatype ");
        }
        public void WhenDefaultConfig()
        {
            var logger = MockEventSourceOutProc.Logger;
            MockConsoleOutput mockConsole = new MockConsoleOutput();

            var svcConfiguration = TraceEventServiceConfiguration.Load("Configurations\\Console\\ConsoleNoParams.xml");

            Assert.IsNotNull(svcConfiguration);
        }
        public void WhenConfigValidAndComplete()
        {
            var logger = MockEventSourceOutProc.Logger;
            MockConsoleOutput mockConsole = new MockConsoleOutput();

            var svcConfiguration = TraceEventServiceConfiguration.Load("Configurations\\Console\\Console.xml");
            TestScenario.WithConfiguration(
                svcConfiguration,
                () =>
                {
                    for (int n = 0; n < 10; n++)
                    {
                        logger.LogSomeMessage("some message to console " + n.ToString() + ".");
                    }
                });
        }