[bcl] Remove more NET_2_0 checks from class libs
[mono.git] / mcs / class / Managed.Windows.Forms / Test / System.Windows.Forms / CursorTest.cs
1 //
2 // Copyright (c) 2005 Novell, Inc.
3 //
4 // Authors:
5 //      Miguel de Icaza
6 //
7
8 using System;
9 using System.Windows.Forms;
10 using System.Drawing;
11 using NUnit.Framework;
12
13 namespace MonoTests.System.Windows.Forms
14 {
15         [TestFixture]
16         public class CursorTest : TestHelper
17         {
18                 [Test]
19                 public void LoadCursorKind2 ()
20                 {
21                         //
22                         // This test tries to load a cursor with type 1
23                         // this contains an and mask, it used to crash
24                         //
25
26                         new Cursor (typeof (CursorTest).Assembly.GetManifestResourceStream ("a.cur"));
27                 }
28
29                 [Test]
30                 public void CursorPropertyTag ()
31                 {
32                         Cursor md = Cursor.Current;
33                         object s = "MyString";
34
35                         Assert.AreEqual (null, md.Tag, "A1");
36
37                         md.Tag = s;
38                         Assert.AreSame (s, md.Tag, "A2");
39                 }
40         }
41 }