New tests.
[mono.git] / mcs / class / System.ServiceModel / Test / FeatureBased / Features.Serialization / MessageContractTest.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using Proxy.MonoTests.Features.Client;
5 using NUnit.Framework;
6
7 namespace MonoTests.Features.Serialization
8 {
9         [TestFixture]
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
20                         TestMessage r = ((IMessageContractTesterContract) Client).FormatDate (msg);
21
22                         Assert.AreEqual ("2014-01-01", r.FormattedDate, "#1");
23                 }
24         }
25 }