2009-07-11 Michael Barker <mike@middlesoft.co.uk>
[mono.git] / mcs / class / System.Web.Services / Test / System.Web.Services.Description / OperationMessageTest.cs
1 //
2 // MonoTests.System.Web.Services.Description.OperationMessageTest.cs
3 //
4 // Author:
5 //   Erik LeBel <eriklebel@yahoo.ca>
6 //
7 // (C) 2003 Erik LeBel
8 //
9
10 using NUnit.Framework;
11
12 using System;
13 using System.Web.Services.Description;
14 using System.Xml;
15
16 namespace MonoTests.System.Web.Services.Description
17 {
18         [TestFixture]
19         public class OperationMessageTest
20         {
21                 OperationMessage operation;
22
23                 [SetUp]
24                 public void InitializeOperation()
25                 {
26                         // workaround: OperationInput, OperationOutput and OperationFault are all empty derivations of OperationMessage
27                         operation = new OperationInput();
28                 }
29
30                 [Test]
31                 public void TestDefaultProperties()
32                 {
33                         Assert.AreEqual (String.Empty, operation.Documentation);
34                         Assert.IsNull (operation.Name);
35                         Assert.AreEqual (XmlQualifiedName.Empty, operation.Message);
36                         Assert.IsNull (operation.Operation);
37                 }
38         }
39 }