Aspects.Logging.Tests.Helpers.MessageFormatterTests.Test1 C# (CSharp) Method

Test1() private method

private Test1 ( ) : void
return void
        public void Test1()
        {
            string result = null;
            try
            {
                result = MessageFormatter.FormatMessage(
                    null, 
                    new MethodExecutionArgs(new object(), Arguments.Empty), 
                    string.Empty, 
                    null);
            }
            catch (Exception exception)
            {
                exception.Should().BeOfType<ArgumentNullException>("because we passed in a null logging info");
            }

            result.Should().BeNullOrWhiteSpace();
        }
    }
MessageFormatterTests