Mercurial > repos > IBBoard.Tests
comparison Limits/UnlimitedLimitTest.cs @ 9:1ba61db2c7fc
Re #24: Add limit objects
* Update tests for "unlimited" to return the largest integer possible (int.MaxValue), since its limit as a double is infinity
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 23 Oct 2009 19:05:43 +0000 |
parents | 43e282ec574c |
children |
comparison
equal
deleted
inserted
replaced
8:43e282ec574c | 9:1ba61db2c7fc |
---|---|
15 return new UnlimitedLimit(); | 15 return new UnlimitedLimit(); |
16 } | 16 } |
17 | 17 |
18 public override double GetSize100ExpectedValue () | 18 public override double GetSize100ExpectedValue () |
19 { | 19 { |
20 return 100; | 20 return int.MaxValue; |
21 } | 21 } |
22 | 22 |
23 public override double GetSize10ExpectedValue () | 23 public override double GetSize10ExpectedValue () |
24 { | 24 { |
25 return 10; | 25 return int.MaxValue; |
26 } | 26 } |
27 | 27 |
28 public override double GetSize1ExpectedValue () | 28 public override double GetSize1ExpectedValue () |
29 { | 29 { |
30 return 1; | 30 return int.MaxValue; |
31 } | 31 } |
32 | 32 |
33 public override AbstractLimit GetEqualLimitObject () | 33 public override AbstractLimit GetEqualLimitObject () |
34 { | 34 { |
35 return new UnlimitedLimit(); | 35 return new UnlimitedLimit(); |