From 681f0c564e7a231f0d97af6f280d9ddaa5d205ed Mon Sep 17 00:00:00 2001 From: Hristo Todorov Date: Mon, 8 Aug 2016 19:58:53 +0300 Subject: [PATCH] Changed to ArgumentException if (arguments.Length < 2) { throw new ArgumentException("Invalid number of arguments for add command"); } --- .../Live-Demo-Morning-Lecture/\320\242estsRequirements.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/Topics/04. Workshop(Trainers)/Live-Demo-Morning-Lecture/\320\242estsRequirements.md" "b/Topics/04. Workshop(Trainers)/Live-Demo-Morning-Lecture/\320\242estsRequirements.md" index 9141a20..aa711e0 100644 --- "a/Topics/04. Workshop(Trainers)/Live-Demo-Morning-Lecture/\320\242estsRequirements.md" +++ "b/Topics/04. Workshop(Trainers)/Live-Demo-Morning-Lecture/\320\242estsRequirements.md" @@ -6,7 +6,7 @@ - ProcessCommand should throw ArgumentNullException, when the "IBattleManager battleManager" is null. - ProcessCommand should throw ArgumentNullException, when the "params string[] arguments" is null. - - ProcessCommand should throw ArgumentNullException, when the number of "params string[] arguments" is invalid (lower than 2). + - ProcessCommand should throw ArgumentException, when the number of "params string[] arguments" is invalid (lower than 2). - ProcessCommand should call IBattleManager.AddCreatures(), when the command is parsed successfully. ## Class - ArmyOfCreatures.Logic.Specialties.DoubleDefenseWhenDefending