/// <summary> /// A function called before every test is run. /// Invokes the function on this type which has been marked with the microsoft unit testing framework TestInitialize attribute. /// </summary> private void OnTestStart() { if (TestInitialize != null) { TestInitialize.Invoke(this, null); } }
protected static void Before() { TestInitialize.Run(); }