How to pass Guid.Empty into a parameterized unit test?
<p>I'm attempting to pass Guid.Empty into my unit test:</p>

<pre><code>[TestCase(null)]
[TestCase(Guid.Empty)]
public void When_AccountGuid_IsNullOrEmpty_AddError_Is_Invoked(Guid? accountGuid)
{

}
</code></pre>

<p>However the compiler is complaining:</p>

<blockquote>
  <p>An attribute argument must be a constant expression, typeof expression
  or array creation expression of an attribute parameter type</p>
</blockquote>

<p><strong>How do I pass Guid.Empty into my unit test method?</strong></p>

<p>I've also tried to factor it out by declaring it as a private member in the class, with the same compiler error:</p>

<pre><code>        private static Guid _emptyGuid = Guid.Empty;
        [TestCase(null)]
        [TestCase(_emptyGuid)]
        public void When_AccountGuid_IsNullOrEmpty_AddError_Is_Invoked(Guid? accountGuid)
        {

        }
</code></pre>