Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CursorTest.cs « System.Windows.Forms « Test « Managed.Windows.Forms « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a8fe981813776235d85a5342087be8d520652a9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// Copyright (c) 2005 Novell, Inc.
//
// Authors:
//      Miguel de Icaza
//

using System;
using System.Windows.Forms;
using System.Drawing;
using NUnit.Framework;

namespace MonoTests.System.Windows.Forms
{
	[TestFixture]
	public class CursorTest : TestHelper
	{
		[Test]
		public void LoadCursorKind2 ()
		{
			//
			// This test tries to load a cursor with type 1
			// this contains an and mask, it used to crash
			//

			new Cursor (typeof (CursorTest).Assembly.GetManifestResourceStream ("a.cur"));
		}

#if NET_2_0
		[Test]
		public void CursorPropertyTag ()
		{
			Cursor md = Cursor.Current;
			object s = "MyString";

			Assert.AreEqual (null, md.Tag, "A1");

			md.Tag = s;
			Assert.AreSame (s, md.Tag, "A2");
		}
#endif
	}
}