File tree Expand file tree Collapse file tree 4 files changed +89
-0
lines changed
plugins/csharp/tests/data/partially-passing Expand file tree Collapse file tree 4 files changed +89
-0
lines changed Original file line number Diff line number Diff line change 1+ using System ;
2+
3+ namespace TestProject
4+ {
5+ public class Program
6+ {
7+ public static bool ReturnTrue => true ;
8+
9+ public static bool ReturnNotInput ( bool input ) => ! input ;
10+ public static string ReturnInputString ( string input ) => input ;
11+
12+ public static void Main ( string [ ] args )
13+ {
14+ //BEGIN SOLUTION
15+ Console . WriteLine ( "Hello Home" ) ;
16+ //END SOLUTION
17+ //STUB: Console.WriteLine("Stub");
18+ }
19+ }
20+ }
Original file line number Diff line number Diff line change 1+ <Project Sdk =" Microsoft.NET.Sdk" >
2+
3+ <PropertyGroup >
4+ <OutputType >Exe</OutputType >
5+ <TargetFramework >net5.0</TargetFramework >
6+ </PropertyGroup >
7+
8+ </Project >
Original file line number Diff line number Diff line change 1+ using System ;
2+ using Xunit ;
3+ using TestProject ;
4+ using TestMyCode . CSharp . API . Attributes ;
5+
6+ namespace TestProjectTests
7+ {
8+ [ Points ( "1" ) ]
9+ public class ProgramTest
10+ {
11+ [ Fact ]
12+ [ Points ( "1.1" ) ]
13+ public void TestReturnsTrue ( )
14+ {
15+ Assert . True ( false ) ;
16+ }
17+
18+ [ Fact ]
19+ [ Points ( "1.1" ) ]
20+ public void ReturnsNotInput ( )
21+ {
22+ Assert . True ( true ) ;
23+ }
24+
25+ [ Fact ]
26+ [ Points ( "1.2" ) ]
27+ public void ReturnsString ( )
28+ {
29+ Assert . True ( true ) ;
30+ }
31+
32+ [ Fact ]
33+ public void TestForClassPoint ( )
34+ {
35+ Assert . True ( true ) ;
36+ }
37+
38+ public void NotAPointTest ( )
39+ {
40+ Assert . True ( false ) ;
41+ }
42+ }
43+ }
Original file line number Diff line number Diff line change 1+ <Project Sdk =" Microsoft.NET.Sdk" >
2+
3+ <PropertyGroup >
4+ <TargetFramework >net5.0</TargetFramework >
5+ <IsPackable >false</IsPackable >
6+ </PropertyGroup >
7+
8+ <ItemGroup >
9+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.8.0" />
10+ <PackageReference Include =" TestMyCode.CSharp.API" Version =" 1.1" />
11+ <PackageReference Include =" xunit" Version =" 2.4.1" />
12+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.3" />
13+ </ItemGroup >
14+
15+ <ItemGroup >
16+ <ProjectReference Include =" ../../src/TestProject/TestProject.csproj" />
17+ </ItemGroup >
18+ </Project >
You can’t perform that action at this time.
0 commit comments