public void TestMethodGetSubcatchResult() { int index = 1; int type = 1; double result = 2; double elapsedTime = 1; var toolkitSWMM = new SWMMToolkit(); int error = toolkitSWMM.Open(f1, f2, f3); error = toolkitSWMM.Start(0); error = toolkitSWMM.Step(ref elapsedTime); error = toolkitSWMM.GetSubcatchResult(index, type, ref result); Assert.AreEqual(0, error); }
public void TestMethodSetLinkParam() { int index = 1; int Param = 3; double value = 1; double elapsedTime = 1; var toolkitSWMM = new SWMMToolkit(); int error = toolkitSWMM.Open(f1, f2, f3); error = toolkitSWMM.Start(0); error = toolkitSWMM.Step(ref elapsedTime); error = toolkitSWMM.SetLinkParam(index, Param, value); Assert.AreEqual(0, error); }