Вот что я хочу
[TestMethod] public static void T1() { if (...) //continue the test else //abort the test from continueing. }
Я хочу прервать продолжение теста, если он соответствует определенным условиям.
Разве вы не можете просто использовать оператор возврата
[TestMethod] public static void T1() { if (...) { //continue the test } else { return; } }
public static void T1() { if (...) //continue the test else { //abort the test from continueing. return; //this will do the trick } }