2 // Mono.Security.Protocol.Ntlm.MessageBase Unit Tests
5 // Sebastien Pouliot (sebastien@ximian.com)
7 // Copyright (C) 2004 Novell (http://www.novell.com)
12 using Mono.Security.Protocol.Ntlm;
13 using NUnit.Framework;
15 namespace MonoTests.Mono.Security.Protocol.Ntlm {
18 public class MessageBaseTest : Assertion {
23 [ExpectedException (typeof (ArgumentNullException))]
24 public void Decode_Null ()
26 Type3Message msg = new Type3Message (null);
30 [ExpectedException (typeof (ArgumentOutOfRangeException))]
31 public void Decode_MinimalValidLength ()
33 Type3Message msg = new Type3Message (new byte [8]);
37 [ExpectedException (typeof (ArgumentException))]
38 public void Decode_BadHeader ()
40 byte[] header = { 0x4e, 0x54, 0x4c, 0x4d, 0x53, 0x53, 0x50, 0x01, 0x00, 0x00, 0x00, 0x00 };
41 Type3Message msg = new Type3Message (header);