Exemplo n.º 1
0
 public static ITestResponder <T> UntilReadyTo <T>(
     this IOptionalTestResponder respondTo,
     ITestResponder <T> untilReady,
     [CallerMemberName] string memberName    = "",
     [CallerFilePath] string sourceFilePath  = "",
     [CallerLineNumber] int sourceLineNumber = 0)
 => new UntilReadyToResponder <T>(
     respondTo,
     untilReady,
     new SourceContext(nameof(UntilReadyTo), memberName, sourceFilePath, sourceLineNumber));
Exemplo n.º 2
0
 public static ITestWaitCondition <T> Until <T>(
     this IOptionalTestResponder respondTo,
     ITestWaitCondition <T> condition,
     [CallerMemberName] string memberName    = "",
     [CallerFilePath] string sourceFilePath  = "",
     [CallerLineNumber] int sourceLineNumber = 0)
 => new UntilResponder <T>(
     respondTo,
     condition,
     new SourceContext(nameof(Until), memberName, sourceFilePath, sourceLineNumber));
Exemplo n.º 3
0
 public UntilResponder(
     IOptionalTestResponder responder,
     ITestWaitCondition <T> condition,
     SourceContext sourceContext)
     : base(() => new UntilResponderState <T>(
                "UNTIL",
                responder.CreateState(),
                condition.CreateState(),
                sourceContext))
 {
 }
 public UntilReadyToResponder(
     IOptionalTestResponder respondTo,
     ITestResponder <T> untilReady,
     SourceContext sourceContext)
     : base(() => new UntilResponderState <ITestOperationState <T> >(
                "UNTIL READY TO",
                respondTo.CreateState(),
                untilReady.CreateState(),
                sourceContext))
 {
 }