예제 #1
0
 /// <summary>
 /// Inicializacia novej instancie <see cref="ShouldThrowTestBuilder" /> triedy.
 /// </summary>
 /// <param name="controller">Controller na ktorom bude cinnost testovana.</param>
 /// <param name="actionName">Nazov testovanej akcie.</param>
 /// <param name="caughtException">Chyba vynimky.</param>
 public ShouldThrowTestBuilder(
     ApiController controller,
     string actionName,
     Exception caughtException)
     : base(controller, actionName, caughtException)
 {
     this.exceptionTestBuilder = new ExceptionTestBuilder(this.Controller, this.ActionName, this.CaughtException);
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShouldThrowTestBuilder" /> class.
 /// </summary>
 /// <param name="controller">Controller on which the action will be tested.</param>
 /// <param name="actionName">Name of the tested action.</param>
 /// <param name="caughtException">Caught exception during the action execution.</param>
 public ShouldThrowTestBuilder(
     ApiController controller,
     string actionName,
     Exception caughtException)
     : base(controller, actionName, caughtException)
 {
     this.exceptionTestBuilder = new ExceptionTestBuilder(this.Controller, this.ActionName, this.CaughtException);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ShouldThrowTestBuilder"/> class.
 /// </summary>
 /// <param name="testContext"><see cref="ComponentTestContext"/> containing data about the currently executed assertion chain.</param>
 public ShouldThrowTestBuilder(ComponentTestContext testContext)
     : base(testContext)
 {
     this.exceptionTestBuilder = new ExceptionTestBuilder(this.TestContext);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ShouldThrowTestBuilder"/> class.
 /// </summary>
 /// <param name="testContext"><see cref="ControllerTestContext"/> containing data about the currently executed assertion chain.</param>
 public ShouldThrowTestBuilder(ControllerTestContext testContext)
     : base(testContext)
 {
     this.exceptionTestBuilder = new ExceptionTestBuilder(this.TestContext);
 }