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();
}
}