-
Notifications
You must be signed in to change notification settings - Fork 15
/
test.cs
68 lines (58 loc) · 1.25 KB
/
test.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using System;
using Xunit;
namespace dotnet
{
public class Example
{
[Fact]
public void PassesTestOne()
{
Assert.Equal(42, (21 + 21));
}
[Fact]
public void PassesTestTwo()
{
Assert.Equal(99, (33 * 3));
}
[Fact]
public void PassesTestThree()
{
Assert.Equal("hello", "he" + "llo");
}
[Fact]
public void PassesTestFour()
{
Assert.Equal("world", "world" + "");
}
[Fact]
public void FailsTestFive()
{
Assert.Equal(42, (42 + 1));
}
[Fact]
public void FailsTestSix()
{
Assert.Equal(99, (99 - 1));
}
[Fact]
public void FailsTestSeven()
{
Assert.Equal("hello", "wo" + "rld");
}
[Fact]
public void FailsTestEight()
{
Assert.Equal("world", "hello" + "");
}
[Fact(Skip="skips test nine")]
public void SkipsTestNine()
{
Assert.Equal(42, 99);
}
[Fact(Skip="skips test ten")]
public void SkipsTestTen()
{
Assert.Equal(72, 72);
}
}
}