public void ExtractTest()
 {
     Coordinate[] result = CoordinateArrays.Extract(array, 1, 5);
     Assert.AreEqual(5, result.Length);
     Assert.AreEqual(result[0], array[1]);
     Assert.AreEqual(result[1], array[2]);
     Assert.AreEqual(result[2], array[3]);
     Assert.AreEqual(result[3], array[4]);
     Assert.AreEqual(result[4], array[5]);
 }
        public void ExtractTest2()
        {
            Assert.Throws <ArgumentException>(LegacyTestMethod);

            void LegacyTestMethod()
            {
                var result = CoordinateArrays.Extract(array, 1, 10);

                Assert.IsNull(result);
            }
        }
 public void ExtractTest2()
 {
     Coordinate[] result = CoordinateArrays.Extract(array, 1, 10);
     Assert.IsNull(result);
 }