IncludeTestTest.cs 608 B

1234567891011121314151617181920212223242526272829
  1. // Web service test for WSDL document:
  2. // http://localhost:8080/IncludeTest.asmx?wsdl
  3. using System;
  4. using NUnit.Framework;
  5. using IncludeTestTests.Soap;
  6. namespace IncludeTestTests
  7. {
  8. [TestFixture]
  9. public class IncludeTestTest: WebServiceTest
  10. {
  11. [Test]
  12. public void TestService ()
  13. {
  14. IncludeTest test = new IncludeTest();
  15. object[] data = test.foo ();
  16. AssertNotNull (data);
  17. ComplexThing c1 = data[0] as ComplexThing;
  18. AssertNotNull (c1);
  19. AssertEquals ("abc",c1.name);
  20. ComplexThing c2 = data[1] as ComplexThing;
  21. AssertNotNull (c2);
  22. AssertEquals ("xyz",c2.name);
  23. }
  24. }
  25. }