public void GetBodyOperationParametersFromHashtableSucceeds() { // Arrange var param1Value = "some arbitrary value"; var param2Value = 42; var svc = new NorthwindEntities(_serviceRoot); var input = new Hashtable { { nameof(BodyOperationTestClass.Param1), param1Value }, { nameof(BodyOperationTestClass.Param2), param2Value }, { nameof(BodyOperationTestClass.Field3), BodyOperationTestClass.FIELD3_VALUE } }; // Act var result = svc.GetBodyOperationParametersFromHashtable(input); // Assert Assert.AreEqual(3, result.Count()); var p1 = result.Single(e => e.Name == nameof(BodyOperationTestClass.Param1)); Assert.AreEqual(param1Value, p1.Value); var p2 = result.Single(e => e.Name == nameof(BodyOperationTestClass.Param2)); Assert.AreEqual(param2Value, p2.Value); var p3 = result.Single(e => e.Name == nameof(BodyOperationTestClass.Field3)); Assert.AreEqual(BodyOperationTestClass.FIELD3_VALUE, p3.Value); }