public void ValueCount() { Assert.AreEqual(0, LongSet.Empty.Count()); Assert.AreEqual(ulong.MaxValue, new LongSet(3).Invert().Count()); Assert.AreEqual(ulong.MaxValue, LongSet.Universe.Count()); Assert.AreEqual(long.MaxValue + 2ul, new LongSet(LongInterval.Inclusive(-1, long.MaxValue)).Count()); }
public void Values() { Assert.IsFalse(LongSet.Empty.Values.Any()); Assert.IsTrue(LongSet.Universe.Values.Any()); Assert.AreEqual(new[] { 1, 2, 3 }, new LongSet(LongInterval.Inclusive(1, 3)).Values.ToArray()); }