示例#1
0
        public void LoadFileTest()
        {
            DistributedLeaching target = new DistributedLeaching(); // TODO: Initialize to an appropriate value

            target.LoadFileParallel(@"F:\Oplandsmodel\NLES\SoilFarms_dmi10kmgrid_daily2002.txt");

            int k = 0;
        }
示例#2
0
        public void GetSumTest()
        {
            DistributedLeaching target = new DistributedLeaching(); // TODO: Initialize to an appropriate value
            DateTime            Start  = new DateTime(1990, 4, 1);
            DateTime            End    = new DateTime(1991, 3, 31);

            target.LoadSoilCodesGrid(@"D:\NitrateModel\model\DKDomainNodes_LU_Soil_codes.shp");
            target.LoadFileParallel(@"D:\NitrateModel\SoilFarms_dmi10kmgrid_daily1990.txt");
//      target.LoadFileParallel(@"D:\NitrateModel\NLES\SoilFarms_dmi10kmgrid_daily2001.txt");
            double actual;

            actual = target.GetSum(Start, End);
            Assert.AreEqual(239770897, actual, 1);
        }
    public void GetSumTest()
    {
      DistributedLeaching target = new DistributedLeaching(); // TODO: Initialize to an appropriate value
      DateTime Start = new DateTime(1990, 4, 1);
      DateTime End = new DateTime(1991, 3, 31);
      target.LoadSoilCodesGrid(@"D:\NitrateModel\model\DKDomainNodes_LU_Soil_codes.shp");
      target.LoadFileParallel(@"D:\NitrateModel\SoilFarms_dmi10kmgrid_daily1990.txt");
//      target.LoadFileParallel(@"D:\NitrateModel\NLES\SoilFarms_dmi10kmgrid_daily2001.txt");
      double actual;
      actual = target.GetSum(Start, End);
      Assert.AreEqual(239770897, actual,1);
    }