Unreachable Code after enum return
<p>Hi I have an emun which is going to run test through and if statement.</p>

<pre><code>public enum Test_Criteria
    {
        Pass,
        Warning,
        Fail
    }
</code></pre>

<p>After it has run the if statement </p>

<pre><code>if (driver.Url.Contains("Postcode.aspx?type=billing&amp;mode=guest"))
        {

            return Test_Criteria.Pass;
        }

        else
        {
            return Test_Criteria.Fail;  
        }
</code></pre>

<p>I am getting unreachable code to carry on to the next test straight below here</p>

<pre><code>driver.FindElement(By.Id("Pagecontent_TextBoxPostCode")).SendKeys("#####");
</code></pre>

<p>What would be the most sensible way to allow the program to continue the code after the return. Thanks</p>
