public void InitializeCookieComplianceService_ThrowsIfLoggerNull() { // Arrange, Act & Assert var exception = Assert.Throws <ArgumentNullException>(() => CookieComplianceService.Initialize(Mock.Of <ICookieComplianceService>(), null)); Assert.Equal("logger", exception.ParamName); }
public void InitializeCookieComplianceService_ThrowsIfCookieComplianceServiceNull() { // Arrange, Act & Assert var exception = Assert.Throws <ArgumentNullException>(() => CookieComplianceService.Initialize(null, It.IsAny <ILogger>())); Assert.Equal("cookieComplianceService", exception.ParamName); }