public void RepeatNone() { ListCompareTestUtil.ValidateEqual( Enumerable.Repeat(5, 0), FastLinq.Repeat(5, 0), 1); }
public void CountNegative() { new Action( () => FastLinq.Repeat(0, -100)) .Should() .Throw <ArgumentOutOfRangeException>(); }
public void RepeatNull() { ListCompareTestUtil.ValidateEqual( Enumerable.Repeat <object>(null, 3), FastLinq.Repeat <object>(null, 3), 1); }
public void NominalTest() { ListCompareTestUtil.ValidateEqual( Enumerable.Repeat(5, 10), FastLinq.Repeat(5, 10), 4); }
public void CountIntMax() { // Cannot use ListCompare due to memory constraints (in x86 at least) new Action( () => FastLinq.Repeat(2, int.MaxValue)) .Should() .NotThrow(); }
public void RepeatObject() { var o = new object(); ListCompareTestUtil.ValidateEqual( Enumerable.Repeat(o, 3), FastLinq.Repeat(o, 3), 1); }
public void Setup() { this.RepeatList = FastLinq.Repeat( 1, this.SizeOfInput); }