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 DateTime start = DateTime.Now;
\r
31 Client.Sleep (sleepTime);
\r
32 DateTime end = DateTime.Now;
\r
33 TimeSpan diff = end.Subtract (start);
\r
34 TimeSpan max = TimeSpan.FromMilliseconds(failTime);
\r
35 Assert.IsTrue (diff < max, "Sleep({0} milisec) must end in less than {1} seconds",sleepTime,failTime);
\r
36 if (sleepTime > (int) diff.TotalMilliseconds)
\r
37 Thread.Sleep (sleepTime - (int)diff.TotalMilliseconds); // wait for server thread to release itself
\r
41 [Category ("NotWorking")]
\r
42 public void TestWsdl () {
\r