public void OnInitializedShouldRunLast() { TestBootstrapperBase _bootstrapper = new TestBootstrapperBase(); _bootstrapper.Run(); Assert.IsTrue(_bootstrapper.ExtraInitialization); }
public void RegisterFrameworkExceptionTypesShouldRegisterActivationException() { TestBootstrapperBase _bootstrapper = new TestBootstrapperBase(); _bootstrapper.CallRegisterFrameworkExceptionTypes(); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered(typeof(ActivationException))); }
public void CreateLoggerInitializesLogger() { TestBootstrapperBase _bootstrapper = new TestBootstrapperBase(); _bootstrapper.CallCreateLogger(); Assert.IsNotNull(_bootstrapper.BaseLogger); Assert.IsInstanceOfType(_bootstrapper.BaseLogger, typeof(TraceSourceBase)); }
public void LoggerDefaultsToNull() { TestBootstrapperBase _bootstrapper = new TestBootstrapperBase(); Assert.IsNull(_bootstrapper.BaseLogger); Assert.IsNull(_bootstrapper.BaseShell); Assert.IsNull(_bootstrapper.CallCreateShell()); }