public void GetValueTest()
 {
     IGrid inputGrid = new MockClasses.MockGrid();
     Boundary boundary = new Boundary(-180, -90, 180, 90);
     EquirectangularGridMap target = new EquirectangularGridMap(inputGrid, boundary);
     Assert.AreEqual(1.2777777777777777, target.GetValue(-80, -90));
     Assert.AreEqual(0, target.GetXIndex(-80));
     Assert.AreEqual(1, target.GetYIndex(-90));
     Assert.AreEqual(double.NaN, target.GetValue(-190, -90));
 }
예제 #2
0
        public void GetValueTest()
        {
            IGrid    inputGrid            = new MockClasses.MockGrid();
            Boundary boundary             = new Boundary(-180, -90, 180, 90);
            EquirectangularGridMap target = new EquirectangularGridMap(inputGrid, boundary);

            Assert.AreEqual(1.2777777777777777, target.GetValue(-80, -90));
            Assert.AreEqual(0, target.GetXIndex(-80));
            Assert.AreEqual(1, target.GetYIndex(-90));
            Assert.AreEqual(double.NaN, target.GetValue(-190, -90));
        }