public void Enable_ShouldThrowExceptionIfArgumentIsNull()
        {
            var exception = Record.Exception(() => InternalLogger.Enable(null));

            Assert.NotNull(exception);
            Assert.IsType <ArgumentNullException>(exception);
            Assert.Equal("action", ((ArgumentNullException)exception).ParamName);
        }
        public void Enable_Disable_ShouldStartAndStopTracing()
        {
            var traceOutput = new StringBuilder();

            InternalLogger.Enable(msg => traceOutput.AppendLine(msg));

            NotifyAsync();

            Assert.True(traceOutput.Length > 0, traceOutput.ToString());

            InternalLogger.Disable();
            traceOutput.Clear();

            NotifyAsync();

            Assert.True(traceOutput.Length == 0, traceOutput.ToString());
        }