2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / Mono.Security / Test / Mono.Security.Protocol.Ntlm / MessageBaseTest.cs
1 //
2 // Mono.Security.Protocol.Ntlm.MessageBase Unit Tests
3 //
4 // Author:
5 //      Sebastien Pouliot (sebastien@ximian.com)
6 //
7 // Copyright (C) 2004 Novell (http://www.novell.com)
8 //
9
10 using System;
11
12 using Mono.Security.Protocol.Ntlm;
13 using NUnit.Framework;
14
15 namespace MonoTests.Mono.Security.Protocol.Ntlm {
16
17         [TestFixture]
18         public class MessageBaseTest : Assertion {
19         
20                 // 
21         
22                 [Test]
23                 [ExpectedException (typeof (ArgumentNullException))]
24                 public void Decode_Null () 
25                 {
26                         Type3Message msg = new Type3Message (null);
27                 }
28
29                 [Test]
30                 [ExpectedException (typeof (ArgumentOutOfRangeException))]
31                 public void Decode_MinimalValidLength () 
32                 {
33                         Type3Message msg = new Type3Message (new byte [8]);
34                 }
35
36                 [Test]
37                 [ExpectedException (typeof (ArgumentException))]
38                 public void Decode_BadHeader () 
39                 {
40                         byte[] header = { 0x4e, 0x54, 0x4c, 0x4d, 0x53, 0x53, 0x50, 0x01, 0x00, 0x00, 0x00, 0x00 };
41                         Type3Message msg = new Type3Message (header);
42                 }
43
44         }
45 }