Mercurial > repos > IBBoard.WarFoundry.API.Tests
diff API/Factories/Requirement/UnitRequiresAtLeastNUnitsRequirementFactoryTest.cs @ 154:bf2880cf7bc5
* Fix deprecation warnings
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 02 Jul 2011 19:56:30 +0000 |
parents | e84149f37478 |
children | 3725fd449c77 |
line wrap: on
line diff
--- a/API/Factories/Requirement/UnitRequiresAtLeastNUnitsRequirementFactoryTest.cs Sat Jul 02 15:09:48 2011 +0000 +++ b/API/Factories/Requirement/UnitRequiresAtLeastNUnitsRequirementFactoryTest.cs Sat Jul 02 19:56:30 2011 +0000 @@ -107,7 +107,7 @@ } [Test()] - [ExpectedException(typeof(InvalidRequirementException), "Invalid unit type 'fibble' for 'Requires at least N units' requirement")] + [ExpectedException(typeof(InvalidRequirementException), ExpectedMessage="Invalid unit type 'fibble' for 'Requires at least N units' requirement")] public void TestExceptionsForInvalidID() { UnitRequiresAtLeastNUnitsRequirementFactory factory = new UnitRequiresAtLeastNUnitsRequirementFactory(); @@ -116,7 +116,7 @@ } [Test()] - [ExpectedException(typeof(InvalidRequirementException), "Invalid amount 'a' for unit type 'unit1' for 'Requires at least N units' requirement")] + [ExpectedException(typeof(InvalidRequirementException), ExpectedMessage="Invalid amount 'a' for unit type 'unit1' for 'Requires at least N units' requirement")] public void TestExceptionsForInvalidNumber() { UnitRequiresAtLeastNUnitsRequirementFactory factory = new UnitRequiresAtLeastNUnitsRequirementFactory();