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); }
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); }