public void GetInputExchangeItems() { EngineWrapper engineWrapper = new EngineWrapper(); engineWrapper.Initialize(arguments); Assert.AreEqual(2, engineWrapper.GetInputExchangeItemCount()); List <HydroNumerics.OpenMI.Sdk.Backbone.InputExchangeItem> inputExchangeItemsList = new List <InputExchangeItem>(); for (int i = 0; i < engineWrapper.GetInputExchangeItemCount(); i++) { inputExchangeItemsList.Add(engineWrapper.GetInputExchangeItem(i)); } InputExchangeItem inputExchangeItem = inputExchangeItemsList.First(myVar => myVar.Quantity.ID == "Flow"); Assert.AreEqual("Flow", inputExchangeItem.Quantity.ID); Assert.AreEqual("Inflow to Upper lake", inputExchangeItem.ElementSet.ID); Assert.AreEqual(ElementType.IDBased, inputExchangeItem.ElementSet.ElementType); inputExchangeItem = inputExchangeItemsList.First(myVar => myVar.Quantity.ID == "Head"); Assert.AreEqual("Head", inputExchangeItem.Quantity.ID); Assert.AreEqual("Groundwater boundary under Upper Lake", inputExchangeItem.ElementSet.ID); Assert.AreEqual(ElementType.XYPolygon, inputExchangeItem.ElementSet.ElementType); Assert.AreEqual(6, inputExchangeItem.ElementSet.GetVertexCount(0)); }