public void CreateLogger_returns_AiLogger() { var sut = new AiLoggerProvider(() => new TelemetryClient()); var logger = sut.CreateLogger("abc"); Assert.IsType <AiLogger>(logger); }
public void CreateLogger_always_returns_new_logger_instance() { var sut = new AiLoggerProvider(() => new TelemetryClient()); var logger1 = sut.CreateLogger("abc"); var logger2 = sut.CreateLogger("abc"); Assert.NotEqual(logger1, logger2); Assert.NotEqual(logger1.GetHashCode(), logger2.GetHashCode()); }