Exemplo n.º 1
0
 public void IntMin()
 {
     ListCompareTestUtil.ValidateEqual(
         Enumerable.Range(int.MinValue, 10),
         FastLinq.Range(int.MinValue, 10),
         4);
 }
Exemplo n.º 2
0
 public void CountNegative()
 {
     new Action(
         () => FastLinq.Range(0, -100))
     .Should()
     .Throw <ArgumentOutOfRangeException>();
 }
Exemplo n.º 3
0
 public void IntMaxCountTwo()
 {
     new Action(
         () => FastLinq.Range(int.MaxValue, 2))
     .Should()
     .Throw <ArgumentOutOfRangeException>();
 }
Exemplo n.º 4
0
 public void TwoCountIntMax()
 {
     new Action(
         () => FastLinq.Range(2, int.MaxValue))
     .Should()
     .Throw <ArgumentOutOfRangeException>();
 }
Exemplo n.º 5
0
 public void IntMaxCountOne()
 {
     ListCompareTestUtil.ValidateEqual(
         Enumerable.Range(int.MaxValue, 1),
         FastLinq.Range(int.MaxValue, 1),
         1);
 }
Exemplo n.º 6
0
 public void NominalTest()
 {
     ListCompareTestUtil.ValidateEqual(
         Enumerable.Range(5, 10),
         FastLinq.Range(5, 10),
         4);
 }
Exemplo n.º 7
0
 public void Setup()
 {
     this.RangeList = FastLinq.Range(
         this.Start,
         this.SizeOfInput);
 }