public void FirstTenValuesShouldBeCantorsZigZag() { var sequence = new CantorsZigZag(); var firstTen = sequence.Take(10).ToList(); for (var i = 0; i < 10; i++) { Assert.Equal(_firstTen.ElementAt(i).X, firstTen.ElementAt(i).X); Assert.Equal(_firstTen.ElementAt(i).Y, firstTen.ElementAt(i).Y); } }
public void SupplyingMaxResultsShouldYieldExpectedCount() { var sequence = new CantorsZigZag(maxResults: 16); Assert.Equal(16, sequence.Count()); }