/// <summary> /// use this check if an individual test has different requirements than the rest of the fixture /// </summary> /// <param name="group">e.g. "WW", "TE", etc. </param> /// <param name="token">e.g. "UI", "1Min" </param> /// <param name="label">the label of your test that you would like to show up in the console message if this fails</param> /// <returns></returns> static public bool ApproveTest(string group, string token, string label) { bool ok = Approver.TestOk(group, token); if (!ok) { Console.WriteLine("Skipping test \"" + label + "\" (" + group + ", " + token + ")."); } return(ok); }
/// <summary> /// use this check if possible, in order to avoid the entire fixture /// </summary> /// <param name="group">e.g. "WW", "TE", etc. </param> /// <param name="token">e.g. "UI", "1Min" </param> static public void ApproveFixture(string group, string token) { Assert.IsTrue(Approver.TestOk(group, token), "Fixture not compatible with current test manager settings (" + group + ", " + token + ")"); }