public void FileTest() { FY3AVirrDataCreator target = new FY3AVirrDataCreator(); // TODO: 初始化为适当的值 string expected = string.Empty; // TODO: 初始化为适当的值 target.L1File = expected; Assert.Inconclusive("无法验证只写属性。"); }
private void iOpen_ItemClick(object sender, ItemClickEventArgs e) { FY3AVirrDataCreator dataCreator = new FY3AVirrDataCreator(); dataCreator.L1File = "C:\\Data\\FY3A_VIRRX_GBAL_L1_20090427_0255_1000M_MS.HDF"; this.imgDispCtrl1.ImageDataProvider = dataCreator.ImageDataProvider; this.imgDispCtrl1.BorderDataProvider = dataCreator.BorderDataProvider; dataCreator.ImageDataProvider.Update(); this.imgDispCtrl1.EnableGdiLayerRender(); }
public void ReadLonTest() { FY3AVirrDataCreator provider = new FY3AVirrDataCreator(); PrivateObject param0 = new PrivateObject(provider); // TODO: 初始化为适当的值 FY3AVirrL1DataProvider_Accessor target = new FY3AVirrL1DataProvider_Accessor(param0); // TODO: 初始化为适当的值 target.L1File =TestDataDir+"\\FY3A_VIRRX_GBAL_L1_20090427_0255_1000M_MS.HDF"; float[, ,] lon = target.ReadLon(); bool ret = false; if (lon.Length > 0 && lon[0, 0, 1] != 0) ret = true; Assert.AreEqual(ret, true); //Assert.Inconclusive("无法验证不返回值的方法。"); }
public void GetDataTest() { FY3AVirrDataCreator provider = new FY3AVirrDataCreator(); PrivateObject param0 = new PrivateObject(provider); // TODO: 初始化为适当的值 FY3AVirrL1DataProvider_Accessor target = new FY3AVirrL1DataProvider_Accessor(param0); // TODO: 初始化为适当的值 // FY3AVirrL1DataProvider target = new FY3AVirrL1DataProvider(); // TODO: 初始化为适当的值 target.L1File = TestDataDir + "\\FY3A_VIRRX_GBAL_L1_20090427_0255_1000M_MS.HDF"; Color expected = Color.FromArgb(255, 47, 47, 47); // TODO: 初始化为适当的值 Bitmap actual; actual = target.CreateImageData(); Color color = actual.GetPixel(500, 500); Assert.AreEqual(expected, color); }
public void FY3AVirrL1DataProviderConstructorTest() { FY3AVirrDataCreator target = new FY3AVirrDataCreator(); // Assert.Inconclusive("TODO: 实现用来验证目标的代码"); }