ChangeLog: Updated ChangeLog.
[mono.git] / mcs / class / System.Drawing / Test / System.Drawing / TestFont.cs
1 //
2 // Test Font class testing unit
3 //
4 // Author:
5 //
6 //       Jordi Mas i Hernandez, jordi@ximian.com
7 //
8 // (C) 2004 Ximian, Inc.  http://www.ximian.com
9 //
10 using System;
11 using System.Drawing;
12 using System.Drawing.Imaging;
13 using NUnit.Framework;
14
15 namespace MonoTests.System.Drawing{
16
17         [TestFixture]   
18         public class FontTest : Assertion {
19                 
20                 [TearDown]
21                 public void Clean() {}
22                 
23                 [SetUp]
24                 public void GetReady()          
25                 {
26                 
27                 }
28                         
29                 // Test basic Font clone, properties and contructor
30                 [Test]
31                 public void TestClone()
32                 {               
33                         Font f = new Font("Arial",12);  
34                         Font f2 = (Font) f.Clone();
35                         
36                         AssertEquals (f.Bold, f2.Bold);
37                         AssertEquals (f.FontFamily, f2.FontFamily);
38                         AssertEquals (f.GdiCharSet, f2.GdiCharSet);
39                         AssertEquals (f.GdiVerticalFont, f2.GdiVerticalFont);
40                         AssertEquals (f.Height, f2.Height);
41                         AssertEquals (f.Italic, f2.Italic);
42                         AssertEquals (f.Name, f2.Name);
43                         AssertEquals (f.Size, f2.Size);
44                         AssertEquals (f.SizeInPoints, f2.SizeInPoints);
45                         AssertEquals (f.Strikeout, f2.Strikeout);
46                         AssertEquals (f.Style, f2.Style);
47                         AssertEquals (f.Underline, f2.Underline);
48                         AssertEquals (f.Unit, f2.Unit);
49                 }
50                 
51         }
52 }