I am unable to use the "I" variable when I call I.Open("http://google.com");
because it is being accessed from a static context. Worst case scenario, I could always use MSTest for selenium tests and MSpec for all others.
[Tags("Easy","Web")]
[Subject("Verify we can reach google.com.")]
public class ViewGoogleTest: FluentTest
{
IActionSyntaxProvider result;
Establish context = () =>
{
SeleniumWebDriver.Bootstrap(SeleniumWebDriver.Browser.Chrome);
};
Because of = () =>
{
result = I.Open("http://google.com");
};
It should_display_the_page = () => result.Find("#SomeId");
}