C# unit test boolean
<p>I need help on writing a unit test for this</p>

<pre><code>Public static Boolean InList(byte value, Type t)
{
    if (!Enum.IsDefined(t, value))
    {
       return false;
    }

    return true;
} 
</code></pre>

<p>This is what i written so far but it keep given me error "out of bound"</p>

<pre><code>  [TestMethod()]
  Public void InListTest()
  {
     Assert.IsTrue(ValidationUI.InList(1, Type.EmptyTypes[0]));
  }
</code></pre>

<p>I don't expect what I wrote on unit test is what the test is asking for, i need some guidance. Thanks in advance </p>