public void WithActionTargetCalculator_NullArgument_Throws() { // Arrange var builder = new BuffActionBuilder(); // Act and Assert Assert.Throws <ArgumentNullException>(() => _ = builder.WithActionTargetCalculator(null)); }
/// <summary> /// Sets the built buff to target a single enemy chosen by the user. /// </summary> /// <param name="builder">The buff builder.</param> /// <param name="userInput">The user input.</param> public static BuffActionBuilder UserSelectsSingleEnemy(this BuffActionBuilder builder, IUserInput userInput) { return(builder.WithActionTargetCalculator(new SingleEnemyActionTargetCalculator(userInput))); }