Further to other answers (and as suggested): I'd suggest using Assert.Inconclusive
over Assert.Fail
, since the original poster's situation is not an explicit failure case.
Using Inconclusive
as a result makes it clear that you don't know whether the test succeeded or failed - which is an important distinction. Not proving success doesn't always constitute failure!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…