コード例 #1
0
        public void GetPrimaryIDTest2()
        {
            Wells.Well w = new HydroNumerics.Wells.Well("193.   72");
            w.AddNewIntake(1);

            int watlevelno;

            Assert.IsTrue(Reader.TryGetPrimaryID(w.Intakes.First(), new DateTime(1994, 8, 1), out watlevelno));
            Assert.AreEqual(14, watlevelno);
        }
コード例 #2
0
        public void GetPrimaryIDTest()
        {
            Wells.Well w = new HydroNumerics.Wells.Well("193.  125A");
            w.AddNewIntake(1);

            Plant         plant  = new Plant(2065);
            PumpingIntake Intake = new PumpingIntake(w.Intakes.First(), plant);
            int           actual;

            Assert.IsTrue(Reader.TryGetPrimaryID(Intake, plant, out actual));
            Assert.AreEqual(707, actual);
        }
コード例 #3
0
    public void GetPrimaryIDTest()
    {

      Wells.Well w = new HydroNumerics.Wells.Well("193.  125A");
      w.AddNewIntake(1);

      Plant plant = new Plant(2065);
      PumpingIntake Intake = new PumpingIntake(w.Intakes.First(), plant);
      int actual;
      Assert.IsTrue(Reader.TryGetPrimaryID(Intake, plant, out actual));
      Assert.AreEqual(707, actual);
    }
コード例 #4
0
    public void GetPrimaryIDTest2()
    {
      Wells.Well w = new HydroNumerics.Wells.Well("193.   72");
      w.AddNewIntake(1);

      int watlevelno;
      Assert.IsTrue(Reader.TryGetPrimaryID(w.Intakes.First(),new DateTime(1994,8,1), out watlevelno));
      Assert.AreEqual(14, watlevelno);
    }