Mercurial > repos > IBBoard.Tests
comparison Limits/NumericSizeConstrainedLimitTest.cs @ 4:a6b26fe532df
Re #24: Add "limit" objects that can be used for numeric limits
* Add initial tests
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 06 Oct 2009 18:53:07 +0000 |
parents | |
children | 9a860452ced0 |
comparison
equal
deleted
inserted
replaced
3:8c45831988c3 | 4:a6b26fe532df |
---|---|
1 // This file (NumericSizeConstrainedLimitTest.cs) is a part of the IBBoard.Tests project and is copyright 2009 IBBoard | |
2 // | |
3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. | |
4 | |
5 using System; | |
6 using NUnit.Framework; | |
7 | |
8 namespace IBBoard.Limits | |
9 { | |
10 [TestFixture()] | |
11 public class NumericSizeConstrainedLimitTest | |
12 { | |
13 [Test()] | |
14 public void TestSizeConstrainedLimits() | |
15 { | |
16 NumericSizeConstrainedLimit limit = new NumericSizeConstrainedLimit(10); | |
17 Assert.AreEqual(10, limit.GetLimit(100)); | |
18 Assert.AreEqual(10, limit.GetLimit(10)); | |
19 Assert.AreEqual(1, limit.GetLimit(1)); | |
20 } | |
21 } | |
22 } |