mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
client/external/GlobalWeatherTest.cs, client/external/HPcatalogTest.cs, client/external/IODCODESPOSTAUXTest.cs, client/external/TemperatureServiceTest.cs, client/localhost/DataServiceTest.cs, client/localhost/DuplicateArrayTestTest.cs, client/localhost/IncludeTestTest.cs, client/localhost/TestBinding4Test.cs: Use new nunit 2.2 api. * server/ConvDocLitWra.asmx, server/ConvDocEncWra.asmx, server/ConvDocLitBar.asmx, server/ConvDocLitWra.asmx, server/ConvRpc.asmx, * wstest.cs: Added support for generating tests cases from a template. Useful to test the same case in all formats and protocols. * proxies.net.xml.gz, wsdlfiles.tar.gz: Updated. * client/localhost/ConvDocEncBarTest.cs, client/localhost/ConvDocLitBarTest.cs, client/localhost/ConvDocLitWraTest.cs, client/localhost/ConvRpcTest.cs, client/localhost/ConvDocEncBar.asmx: Improved tests. Use new nunit 2.2 api. * Conv.cs.template: template for ConverterService client tests. * Conv.asmx.template: template for ConverterService services. * templates.xml: Configuration file for generating the tests. svn path=/trunk/mcs/; revision=30621
30 lines
633 B
C#
30 lines
633 B
C#
// Web service test for WSDL document:
|
|
// http://localhost:8080/IncludeTest.asmx?wsdl
|
|
|
|
using System;
|
|
using NUnit.Framework;
|
|
using IncludeTestTests.Soap;
|
|
|
|
namespace Localhost.IncludeTestTests
|
|
{
|
|
[TestFixture]
|
|
public class IncludeTestTest: WebServiceTest
|
|
{
|
|
[Test]
|
|
public void TestService ()
|
|
{
|
|
IncludeTest test = new IncludeTest();
|
|
object[] data = test.foo ();
|
|
Assert.IsNotNull (data);
|
|
|
|
ComplexThing c1 = data[0] as ComplexThing;
|
|
Assert.IsNotNull (c1);
|
|
Assert.AreEqual ("abc",c1.name);
|
|
|
|
ComplexThing c2 = data[1] as ComplexThing;
|
|
Assert.IsNotNull (c2);
|
|
Assert.AreEqual ("xyz",c2.name);
|
|
}
|
|
}
|
|
}
|