MessageContractTest.cs 780 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Proxy.MonoTests.Features.Client;
  5. using NUnit.Framework;
  6. namespace MonoTests.Features.Serialization
  7. {
  8. [TestFixture]
  9. public class MessageContractTest : TestFixtureBase<MessageContractTesterContractClient, MonoTests.Features.Contracts.MessageContractTester, MonoTests.Features.Contracts.IMessageContractTesterContract>
  10. {
  11. [Test]
  12. [Ignore ("fails under .NET; I never bothered to fix the test")]
  13. public void TestMessageContract ()
  14. {
  15. TestMessage msg = new TestMessage ();
  16. msg.Date = new DateTime (2014, 1, 1);
  17. msg.FormatString = "yyyy-MM-dd";
  18. TestMessage r = ((IMessageContractTesterContract) Client).FormatDate (msg);
  19. Assert.AreEqual ("2014-01-01", r.FormattedDate, "#1");
  20. }
  21. }
  22. }