public virtual void TestToArray_Singleton() { for (int i = 0; i < 62; i++) { Assert.IsTrue(Compares.AreDeepEqual(new int[] { i }, RegularCyclicVertexSearch.ToArray(Pow(2L, i)))); } Assert.IsTrue(Compares.AreDeepEqual(new int[] { 63 }, RegularCyclicVertexSearch.ToArray(long.MinValue))); }
public virtual void TestToArray_Empty() { Assert.IsTrue(Compares.AreDeepEqual(Array.Empty <int>(), RegularCyclicVertexSearch.ToArray(0L))); }