public void ImageGridConstructorTest() { string path = Path.Combine(TestDataPath, "BlueMarble.png"); bool isCircular = false; ImageGrid target = new ImageGrid(path, isCircular); Assert.AreEqual(5400, target.Width); Assert.AreEqual(2700, target.Height); Assert.AreEqual(-16644328.0, target.GetValue(0.5, 0.5)); Assert.AreEqual(-16180676.0, target.GetValueAt(2400, 2000)); Assert.AreEqual(2591, target.GetXIndex(0.48)); Assert.AreEqual(971, target.GetYIndex(0.36)); }