public BaseFunctionTests() { mockLogger = MockILogger.Get <TFunction>(); mockAccessTokenValidator = MockIAccessTokenValidator.Get(); mockTransfersService = MockITransfersService.Get(); mockCoreContext = MockICoreContext.Get(); }
public void GetLogWithTypeReturnsALoggerWithTypeName() { string expected = "PluginFramework.Tests.Logging.UnitTest_ILogger"; string actual = null; ILogger tested = new MockILogger(); actual = tested.GetLog(GetType()).Name; Assert.AreEqual(expected, actual); }
public void GetLogWithObjectThrowsOnNullObject() { ILogger tested = new MockILogger(); DoAssert.Throws <ArgumentNullException>(() => tested.GetLog((object)null)); }
public void GetLogWithTypeThrowsOnNullType() { ILogger tested = new MockILogger(); DoAssert.Throws <ArgumentNullException>(() => tested.GetLog((Type)null)); }