public void CallbackTestInfo() { MsalLogger logger = new MsalLogger(Guid.Empty, null); var counter = 0; Logger.Level = LogLevel.Info; _callback.When(x => x(LogLevel.Error, Arg.Any <string>(), false)).Do(x => counter++); logger.ErrorPii(new ArgumentException("test message")); Assert.AreEqual(1, counter); _callback.When(x => x(LogLevel.Warning, Arg.Any <string>(), false)).Do(x => counter++); logger.Warning("test message"); Assert.AreEqual(2, counter); _callback.When(x => x(LogLevel.Info, Arg.Any <string>(), false)).Do(x => counter++); logger.Info("test message"); Assert.AreEqual(3, counter); _callback.When(x => x(LogLevel.Verbose, Arg.Any <string>(), false)).Do(x => counter++); logger.Verbose("test message"); Assert.AreEqual(3, counter); }