Here's a test for code formatting


public static T NotNull<T>([ValidatedNotNull]T value, string parameterName)
{
    if (value == null)
    {
        throw new ArgumentNullException(parameterName);
    }
    return value;
}