public void CreateShouldThrowExceptionIfMessageLoggerIsNull() { Assert.ThrowsException <ArgumentNullException>(() => { var testLoggerExtensionManager = TestRuntimeExtensionManager.Create(null); }); }
public void CreateShouldReturnInstanceOfTestLoggerExtensionManager() { try { var testLoggerExtensionManager = TestRuntimeExtensionManager.Create(TestSessionMessageLogger.Instance); Assert.IsNotNull(testLoggerExtensionManager); Assert.IsInstanceOfType(testLoggerExtensionManager, typeof(TestRuntimeExtensionManager)); } finally { TestSessionMessageLogger.Instance = null; } }