-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TheTests.cs
49 lines (36 loc) · 854 Bytes
/
TheTests.cs
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
44
45
46
47
48
49
using WindowsFormsApp1;
[TestFixture]
public class TheTests
{
#region FormUsage
[Test]
public Task FormUsage() =>
Verify(new MyForm());
#endregion
#region UserControlUsage
[Test]
public Task UserControlUsage() =>
Verify(new MyUserControl());
#endregion
#region ContextMenuStrip
[Test]
public Task ContextMenuStrip()
{
var menu = new ContextMenuStrip();
var items = menu.Items;
items.Add(new ToolStripMenuItem("About"));
items.Add(new ToolStripMenuItem("Exit"));
return Verify(menu);
}
#endregion
#region ControlUsage
[Test]
public Task ControlUsage() =>
Verify(
new Button
{
BackColor = Color.LightBlue,
Text = "Help"
});
#endregion
}