public SingleItemAssertable(T subject, TimeSpan?waitInterval = null) { this.subject = subject; WaitInterval = waitInterval ?? AssertionsContext.GetDefaultWaitInterval(); }
public override void BeforeTest(ITest test) { base.BeforeTest(test); previousWaitInterval = AssertionsContext.GetDefaultWaitInterval(); AssertionsContext.SetDefaultWaitInterval(defaultWaitInterval); }
public override void AfterTest(ITest test) { AssertionsContext.SetDefaultWaitInterval(previousWaitInterval); base.AfterTest(test); }
private static int GetActualTimeout(int?timeout) { return(timeout ?? (int)AssertionsContext.GetDefaultWaitInterval().TotalMilliseconds); }