Facilitate the merge
[mono.git] / mcs / class / System.ServiceModel / Test / FeatureBased / Features.Serialization / KnownTypeTest.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using NUnit.Framework;
5 using MonoTests.Features.Contracts;
6
7 namespace MonoTests.Features.Serialization
8 {
9         [TestFixture]
10     public class KnownTypeTest : TestFixtureBase<object, MonoTests.Features.Contracts.KnownTypeTester, MonoTests.Features.Contracts.IKnownTypeTesterContract>
11         {
12                 [Test]
13                 public void TestKnownType ()
14                 {
15                         Point2D p1 = new Point2D ();
16                         p1.X = 1;
17                         p1.Y = 1;
18
19                         Point2D p2 = new Point2D ();
20                         p2.X = 2;
21                         p2.Y = 3;
22
23                         Point2D r = Client.Move (p1, p2);
24                         Assert.IsNotNull (r, "#1");
25                         Assert.IsTrue (r is AdvPoint2D, "#2");
26                         Assert.AreEqual (((AdvPoint2D) r).ZeroDistance, 5, "#3");
27
28                 }
29
30                 [Test]
31                 public void TestKnowType2 () {
32                         BaseContract [] x = Client.foo ();
33                 }
34         }
35 }