Пример #1
0
 public void BetweenIncludingTest()
 {
     AssertFails(10F, AFloat.BetweenIncluding(10.000001F, 10.000003F));
     AssertPasses(10.000001F, AFloat.BetweenIncluding(10.000001F, 10.000003F));
     AssertPasses(10.000002F, AFloat.BetweenIncluding(10.000001F, 10.000003F));
     AssertPasses(10.000003F, AFloat.BetweenIncluding(10.000001F, 10.000003F));
     AssertFails(10.000004F, AFloat.BetweenIncluding(10.000001F, 10.000003F));
     AssertFails(11F, AFloat.BetweenIncluding(10.000001F, 10.000003F));
 }