Copied remotely
[mono.git] / mcs / class / Microsoft.Web.Services / Test / Microsoft.Web.Services.Security / SaMLTest.cs
1 //
2 // SaMLTest.cs - NUnit Test Cases for SaML
3 //
4 // Author:
5 //      Sebastien Pouliot (spouliot@motus.com)
6 //
7 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
8 //
9
10 using NUnit.Framework;
11 using Microsoft.Web.Services.Security;
12 using System;
13
14 namespace MonoTests.MS.Web.Services.Security {
15
16         [TestFixture]
17         public class SaMLTest : Assertion {
18
19                 [Test]
20                 public void Constructor () 
21                 {
22                         SaML s = new SaML ();
23                         AssertNotNull ("Constructor", s);
24                 }
25
26                 [Test]
27                 public void PublicConstStrings () 
28                 {
29                         AssertEquals ("NamespaceURI", "urn:oasis:names:tc:SAML:1.0:assertion", SaML.NamespaceURI);
30                         AssertEquals ("Prefix", "saml", SaML.Prefix);
31                 }
32
33                 [Test]
34                 public void ElementNamesConstructor () 
35                 {
36                         // test constructor
37                         SaML.ElementNames sen = new SaML.ElementNames ();
38                         AssertNotNull ("ElementNames Constructor", sen);
39                 }
40
41                 [Test]
42                 public void ElementNames () 
43                 {
44                         // test public const strings
45                         AssertEquals ("Assertion", "Assertion", SaML.ElementNames.Assertion);
46                         AssertEquals ("AssertionIDReference", "AssertionIDReference", SaML.ElementNames.AssertionIDReference);
47                 }
48         }
49 }