Skip to content

Commit c60934b

Browse files
committed
added test data
1 parent 46269bc commit c60934b

File tree

4 files changed

+89
-0
lines changed

4 files changed

+89
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net5.0</TargetFramework>
6+
</PropertyGroup>
7+
8+
</Project>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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>

0 commit comments

Comments
 (0)