CallCreateLogger() public method

public CallCreateLogger ( ) : void
return void
Example #1
0
        public void CreateLoggerInitializesLogger()
        {
            var bootstrapper = new DefaultBootstrapper();
            bootstrapper.CallCreateLogger();

            Assert.IsNotNull(bootstrapper.BaseLogger);

#if SILVERLIGHT
            Assert.IsInstanceOfType(bootstrapper.BaseLogger, typeof(EmptyLogger));
#else
            Assert.IsInstanceOfType(bootstrapper.BaseLogger, typeof(TextLogger));
#endif
        }
Example #2
0
        public void CreateLoggerInitializesLogger()
        {
            var bootstrapper = new DefaultBootstrapper();

            bootstrapper.CallCreateLogger();

            Assert.IsNotNull(bootstrapper.BaseLogger);

#if SILVERLIGHT
            Assert.IsInstanceOfType(bootstrapper.BaseLogger, typeof(EmptyLogger));
#else
            Assert.IsInstanceOfType(bootstrapper.BaseLogger, typeof(TextLogger));
#endif
        }