AsyncPatternTester.cs 575 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Proxy.MonoTests.Features.Client;
  5. using NUnit.Framework;
  6. using System.ServiceModel;
  7. using MonoTests.Features.Contracts;
  8. using System.Threading;
  9. namespace MonoTests.Features.Serialization
  10. {
  11. [TestFixture]
  12. public class AsyncPatternTest : TestFixtureBase<AsyncPatternClient, AsyncPatternServer, MonoTests.Features.Contracts.IAsyncPattern>
  13. {
  14. [Test]
  15. public void TestAsync () {
  16. Assert.AreEqual (ClientProxy.AsyncMethod (), 3, "Called method with AsyncPattern=true");
  17. }
  18. }
  19. }