Skip to content

Commit 943f045

Browse files
Add CSharp.SDK.9 IT
1 parent a757b9c commit 943f045

File tree

6 files changed

+92
-0
lines changed

6 files changed

+92
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.4.33015.44
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Main", "Main\Main.csproj", "{FC4653F8-668E-4C37-BDE3-AF03814B716E}"
7+
EndProject
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UTs", "UTs\UTs.csproj", "{E96549B1-F7A1-421B-A81C-8547BB101407}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{FC4653F8-668E-4C37-BDE3-AF03814B716E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{FC4653F8-668E-4C37-BDE3-AF03814B716E}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{FC4653F8-668E-4C37-BDE3-AF03814B716E}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{FC4653F8-668E-4C37-BDE3-AF03814B716E}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{E96549B1-F7A1-421B-A81C-8547BB101407}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{E96549B1-F7A1-421B-A81C-8547BB101407}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{E96549B1-F7A1-421B-A81C-8547BB101407}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{E96549B1-F7A1-421B-A81C-8547BB101407}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {4B548A8F-F688-4D3A-ACA4-B440513094F3}
30+
EndGlobalSection
31+
EndGlobal
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace CSharp.SDKs
2+
{
3+
public static class Common
4+
{
5+
// FIXME: This line contains S1134 warning
6+
public static bool IsGreaterThanZero(int value) => value > 0;
7+
}
8+
}
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+
<PropertyGroup>
3+
<TargetFramework>net9.0</TargetFramework>
4+
5+
<!-- This should be overwritten by targets file to get results -->
6+
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
7+
</PropertyGroup>
8+
</Project>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Microsoft.VisualStudio.TestTools.UnitTesting;
2+
3+
namespace CSharp.SDKs.Test
4+
{
5+
[TestClass]
6+
public class CommonTest
7+
{
8+
// FIXME: This line contains S1134 warning in SL, but not in S4NET context due to current test-code support
9+
10+
[TestMethod]
11+
public void TestMethodWithNoAssertion() // S2699: Add at least one assertion to this test case. This rule has test-only scope.
12+
{
13+
Common.IsGreaterThanZero(1);
14+
}
15+
}
16+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net9.0</TargetFramework>
4+
5+
<!-- This should be overwritten by targets file to get results -->
6+
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
11+
<PackageReference Include="MSTest.TestAdapter" Version="3.6.1" />
12+
<PackageReference Include="MSTest.TestFramework" Version="3.6.1" />
13+
<PackageReference Include="coverlet.collector" Version="6.0.2">
14+
<PrivateAssets>all</PrivateAssets>
15+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
16+
</PackageReference>
17+
</ItemGroup>
18+
19+
<ItemGroup>
20+
<ProjectReference Include="..\Main\Main.csproj" />
21+
</ItemGroup>
22+
23+
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sdk": {
3+
"version": "9.0.0",
4+
"rollForward": "latestFeature"
5+
}
6+
}

0 commit comments

Comments
 (0)