public void MethodCallWithComplexParameters() { TestStructure first = new TestStructure { FieldA = "First", FieldB = 42, FieldC = true }; TestStructure second = new TestStructure { FieldA = "Second", FieldB = 314, FieldC = false }; TestStructure single = new TestStructure { FieldA = "Single", FieldB = 2, FieldC = true }; ITestService service = new ServiceProxy<ITestService>(this._serverUrl, "TestService").Service; Assert.AreEqual(first.FieldA, service.MethodWithComplexTypes(new[] { first, second }, single, TestEnum.First).FieldA); Assert.AreEqual(second.FieldB, service.MethodWithComplexTypes(new[] { first, second }, single, TestEnum.Second).FieldB); Assert.AreEqual(single.FieldC, service.MethodWithComplexTypes(new[] { first, second }, single, TestEnum.Single).FieldC); }