2 using System.Collections.Generic;
\r
4 using Proxy.MonoTests.Features.Client;
\r
5 using NUnit.Framework;
\r
6 using System.ServiceModel;
\r
7 using MonoTests.Features.Contracts;
\r
8 using System.Threading;
\r
10 namespace MonoTests.Features.Serialization
\r
13 public class OperationContractTest : TestFixtureBase<OperationContractClient, OperationContractServer, MonoTests.Features.Contracts.IOperationContract>
\r
16 [Category("NotWorking")]
\r
17 public void TestName () {
\r
18 Assert.AreEqual(Client.OrigMethod(),2,"Calling OrigMethod should actually call RenamedMethod");
\r
19 Assert.AreEqual(Client.RenamedMethod(),1,"Calling RenamedMethod should actually call OrigMethod");
\r
23 [Category("NotWorking")]
\r
24 public void TestOneWay () {
\r
25 int sleepTime = 1 * 1000, failTime = 500; // Good times for inproc, no debugging.
\r
26 if (!Configuration.IsLocal) {
\r
27 sleepTime = 5 * 1000;
\r
28 failTime = 2 * 1000;
\r
30 var sw = global::System.Diagnostics.Stopwatch.StartNew ();
\r
31 Client.Sleep (sleepTime);
\r
33 TimeSpan max = TimeSpan.FromMilliseconds(failTime);
\r
34 Assert.IsTrue (sw.Elapsed < max, "Sleep({0} milisec) must end in less than {1} seconds",sleepTime,failTime);
\r
35 if (sleepTime > (int) sw.ElapsedMilliseconds)
\r
36 Thread.Sleep (sleepTime - (int)sw.ElapsedMilliseconds); // wait for server thread to release itself
\r
40 [Category ("NotWorking")]
\r
41 public void TestWsdl () {
\r