Skip to content

Commit 49b1eab

Browse files
committed
fist-change
1 parent b19769b commit 49b1eab

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

hello-world/Program.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
3+
namespace ConsoleApplication
4+
{
5+
public class Program
6+
{
7+
public static void Main(string[] args)
8+
{
9+
Console.WriteLine("Hello World!");
10+
}
11+
}
12+
}

hello-world/class.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using Xunit;
2+
3+
namespace MyFirstDotNetCoreTests
4+
{
5+
public class Class1
6+
{
7+
[Fact]
8+
public void PassingTest()
9+
{
10+
Assert.Equal(4, Add(2, 2));
11+
}
12+
13+
[Fact]
14+
public void FailingTest()
15+
{
16+
Assert.Equal(5, Add(2, 2));
17+
}
18+
19+
int Add(int x, int y)
20+
{
21+
return x + y;
22+
}
23+
}
24+
}

hello-world/project.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": "1.0.0-*",
3+
"testRunner": "xunit",
4+
"dependencies": {
5+
"xunit": "2.2.0-beta2-build3300",
6+
"dotnet-test-xunit": "2.2.0-preview2-build1029"
7+
},
8+
"frameworks": {
9+
"netcoreapp1.0": {
10+
"dependencies": {
11+
"Microsoft.NETCore.App": {
12+
"type": "platform",
13+
"version": "1.0.0"
14+
}
15+
}
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)