public void SaveTest() { var ms = new InputFile(TestPath + @"Karup_Example_DemoMode.she"); ms.SaveAs(TestPath + @"Karup_Example_DemoMode1.she"); }
public void SaveTest() { var ms = new InputFile(@"..\..\..\TestData\Karup_Example_DemoMode.she"); ms.SaveAs(@"..\..\..\TestData\Karup_Example_DemoMode1.she"); }
public FileNames(string MSheFileName) { CheckFiles(Path.GetFullPath(MSheFileName)); _fileNameWithPath = MSheFileName; _input = new InputFile(MSheFileName); Initialize(); }
internal TimeInfo(InputFile Input) { _input = Input; }
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); }
public void MyClassInitialize() { _she = new InputFile(@"..\..\..\PFS\unittest\TestData\TestModel.she"); }
public void ConstructTest() { _she = new InputFile(@"..\..\TestData\TestModel.she"); }
internal FileNames(InputFile Input) { _input = Input; _fileNameWithPath = Input.FileName; Initialize(); }
public void Dispose() { if (_processed != null) { _processed.Dispose(); _processed = null; } if (_results != null) { _results.Dispose(); _results = null; } _input = null; extractionWells = null; }