File tree Expand file tree Collapse file tree 3 files changed +54
-0
lines changed
Expand file tree Collapse file tree 3 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments