public void SaveTest()
    {
      var ms = new InputFile(TestPath + @"Karup_Example_DemoMode.she");

      ms.SaveAs(TestPath + @"Karup_Example_DemoMode1.she");

    }
示例#2
0
    public void SaveTest()
    {
      var ms = new InputFile(@"..\..\..\TestData\Karup_Example_DemoMode.she");

      ms.SaveAs(@"..\..\..\TestData\Karup_Example_DemoMode1.she");

    }
示例#3
0
    public FileNames(string MSheFileName)
		{
			CheckFiles(Path.GetFullPath(MSheFileName));
			_fileNameWithPath = MSheFileName;
      _input = new InputFile(MSheFileName);
      Initialize();
		}
示例#4
0
 internal TimeInfo(InputFile Input)
 {
   _input = Input;
 }
示例#5
0
    public void StartTimeTest()
    {
      DateTime start = _she.MIKESHE_FLOWMODEL.SimSpec.SimulationPeriod.StartTime; ;
      DateTime end = _she.MIKESHE_FLOWMODEL.SimSpec.SimulationPeriod.EndTime;

      start= start.AddDays(2);
      end = end.AddDays(23);

      _she.MIKESHE_FLOWMODEL.SimSpec.SimulationPeriod.StartTime = start;
      _she.MIKESHE_FLOWMODEL.SimSpec.SimulationPeriod.EndTime = end;
      _she.SaveAs(@"..\..\..\PFS\unittest\TestData\TestModel_changed.she");


      InputFile NewFile = new InputFile(@"..\..\..\PFS\unittest\TestData\TestModel_changed.she");

      Assert.AreEqual(start, _she.MIKESHE_FLOWMODEL.SimSpec.SimulationPeriod.StartTime);
      Assert.AreEqual(end, _she.MIKESHE_FLOWMODEL.SimSpec.SimulationPeriod.EndTime);

      
    }
示例#6
0
 public void MyClassInitialize()
 {
   _she = new InputFile(@"..\..\..\PFS\unittest\TestData\TestModel.she");
 }
示例#7
0
 public void ConstructTest()
 {
   _she = new InputFile(@"..\..\TestData\TestModel.she");
 }
示例#8
0
 internal FileNames(InputFile Input)
 {
   _input = Input;
   _fileNameWithPath = Input.FileName;
   Initialize();
 }
示例#9
0
 public void Dispose()
 {
   if (_processed != null)
   {
     _processed.Dispose();
     _processed = null;
   }
   if (_results != null)
   {
     _results.Dispose();
     _results = null;
   }
   _input = null;
   extractionWells = null;
 }