MessageContractTest.cs 835 B

1234567891011121314151617181920212223242526
  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. [Category ("NotWorking")] // Serialization failure
  10. public class MessageContractTest : TestFixtureBase<MessageContractTesterContractClient, MonoTests.Features.Contracts.MessageContractTester, MonoTests.Features.Contracts.IMessageContractTesterContract>
  11. {
  12. [Test]
  13. [Ignore ("fails under .NET; I never bothered to fix the test")]
  14. public void TestMessageContract ()
  15. {
  16. TestMessage msg = new TestMessage ();
  17. msg.Date = new DateTime (2014, 1, 1);
  18. msg.FormatString = "yyyy-MM-dd";
  19. TestMessage r = ((IMessageContractTesterContract) Client).FormatDate (msg);
  20. Assert.AreEqual ("2014-01-01", r.FormattedDate, "#1");
  21. }
  22. }
  23. }