コード例 #1
0
 public void GetColorNaNTest()
 {
     IProjectionGridMap projectionGridMap = new MockClasses.MockProjectionGridMap();
     ImageColorMap target = new ImageColorMap(projectionGridMap);
     Color actual = target.GetColor(double.NaN, double.NaN);
     Assert.AreEqual(Color.Transparent, actual);
 }
コード例 #2
0
        public void GetColorNaNTest()
        {
            IProjectionGridMap projectionGridMap = new MockClasses.MockProjectionGridMap();
            ImageColorMap      target            = new ImageColorMap(projectionGridMap);
            Color actual = target.GetColor(double.NaN, double.NaN);

            Assert.AreEqual(Color.Transparent, actual);
        }
コード例 #3
0
 public void GetColorTest()
 {
     IProjectionGridMap projectionGridMap = new MockClasses.MockProjectionGridMap();
     ImageColorMap target = new ImageColorMap(projectionGridMap);
     double longitude = 200;
     double latitude = 400;
     Color expected = Color.FromArgb(0, 0, 2, 88);
     Color actual = target.GetColor(longitude, latitude);
     Assert.AreEqual(expected, actual);
 }
コード例 #4
0
        public void GetColorTest()
        {
            IProjectionGridMap projectionGridMap = new MockClasses.MockProjectionGridMap();
            ImageColorMap      target            = new ImageColorMap(projectionGridMap);
            double             longitude         = 200;
            double             latitude          = 400;
            Color expected = Color.FromArgb(0, 0, 2, 88);
            Color actual   = target.GetColor(longitude, latitude);

            Assert.AreEqual(expected, actual);
        }