added unit tests
All checks were successful
build (7.0.x)

This commit is contained in:
Holger Börchers 2023-03-29 21:47:10 +02:00
parent 8c5ec02ed7
commit 291eafeeba
22 changed files with 82 additions and 15 deletions

31
SmallInjector.sln Normal file
View File

@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33513.286
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SmallInjector", "src\SmallInjector\SmallInjector.csproj", "{32131173-49C5-4AB5-A949-36FA73D762BF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SmallInjector.Tests", "src\SmallInjector.Tests\SmallInjector.Tests.csproj", "{8EBD2440-A610-4165-8582-CD79F431BFCB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{32131173-49C5-4AB5-A949-36FA73D762BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{32131173-49C5-4AB5-A949-36FA73D762BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{32131173-49C5-4AB5-A949-36FA73D762BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{32131173-49C5-4AB5-A949-36FA73D762BF}.Release|Any CPU.Build.0 = Release|Any CPU
{8EBD2440-A610-4165-8582-CD79F431BFCB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8EBD2440-A610-4165-8582-CD79F431BFCB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8EBD2440-A610-4165-8582-CD79F431BFCB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8EBD2440-A610-4165-8582-CD79F431BFCB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E9CBE7A5-3E64-491C-A930-B8845D7DF91E}
EndGlobalSection
EndGlobal

View File

@ -5,13 +5,13 @@ VisualStudioVersion = 17.4.33103.184
MinimumVisualStudioVersion = 15.0.26124.0
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SmallInjectorDemo", "SmallInjectorDemo\SmallInjectorDemo.csproj", "{620CC001-7DF9-4233-AFC2-187FD9144835}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SmallInjector", "SmallInjector\SmallInjector.csproj", "{8D52C856-A71D-4C50-832B-8679CDD030B4}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{97F8F459-C4B4-4C40-A4CA-2443A9C245D9}"
ProjectSection(SolutionItems) = preProject
.csharpierrc = .csharpierrc
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SmallInjector", "..\src\SmallInjector\SmallInjector.csproj", "{41F6E1B4-C322-4743-9F9E-8A5C57EBA509}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -34,18 +34,18 @@ Global
{620CC001-7DF9-4233-AFC2-187FD9144835}.Release|x64.Build.0 = Release|Any CPU
{620CC001-7DF9-4233-AFC2-187FD9144835}.Release|x86.ActiveCfg = Release|Any CPU
{620CC001-7DF9-4233-AFC2-187FD9144835}.Release|x86.Build.0 = Release|Any CPU
{8D52C856-A71D-4C50-832B-8679CDD030B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8D52C856-A71D-4C50-832B-8679CDD030B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8D52C856-A71D-4C50-832B-8679CDD030B4}.Debug|x64.ActiveCfg = Debug|Any CPU
{8D52C856-A71D-4C50-832B-8679CDD030B4}.Debug|x64.Build.0 = Debug|Any CPU
{8D52C856-A71D-4C50-832B-8679CDD030B4}.Debug|x86.ActiveCfg = Debug|Any CPU
{8D52C856-A71D-4C50-832B-8679CDD030B4}.Debug|x86.Build.0 = Debug|Any CPU
{8D52C856-A71D-4C50-832B-8679CDD030B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8D52C856-A71D-4C50-832B-8679CDD030B4}.Release|Any CPU.Build.0 = Release|Any CPU
{8D52C856-A71D-4C50-832B-8679CDD030B4}.Release|x64.ActiveCfg = Release|Any CPU
{8D52C856-A71D-4C50-832B-8679CDD030B4}.Release|x64.Build.0 = Release|Any CPU
{8D52C856-A71D-4C50-832B-8679CDD030B4}.Release|x86.ActiveCfg = Release|Any CPU
{8D52C856-A71D-4C50-832B-8679CDD030B4}.Release|x86.Build.0 = Release|Any CPU
{41F6E1B4-C322-4743-9F9E-8A5C57EBA509}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{41F6E1B4-C322-4743-9F9E-8A5C57EBA509}.Debug|Any CPU.Build.0 = Debug|Any CPU
{41F6E1B4-C322-4743-9F9E-8A5C57EBA509}.Debug|x64.ActiveCfg = Debug|Any CPU
{41F6E1B4-C322-4743-9F9E-8A5C57EBA509}.Debug|x64.Build.0 = Debug|Any CPU
{41F6E1B4-C322-4743-9F9E-8A5C57EBA509}.Debug|x86.ActiveCfg = Debug|Any CPU
{41F6E1B4-C322-4743-9F9E-8A5C57EBA509}.Debug|x86.Build.0 = Debug|Any CPU
{41F6E1B4-C322-4743-9F9E-8A5C57EBA509}.Release|Any CPU.ActiveCfg = Release|Any CPU
{41F6E1B4-C322-4743-9F9E-8A5C57EBA509}.Release|Any CPU.Build.0 = Release|Any CPU
{41F6E1B4-C322-4743-9F9E-8A5C57EBA509}.Release|x64.ActiveCfg = Release|Any CPU
{41F6E1B4-C322-4743-9F9E-8A5C57EBA509}.Release|x64.Build.0 = Release|Any CPU
{41F6E1B4-C322-4743-9F9E-8A5C57EBA509}.Release|x86.ActiveCfg = Release|Any CPU
{41F6E1B4-C322-4743-9F9E-8A5C57EBA509}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -8,6 +8,6 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\SmallInjector\SmallInjector.csproj" />
<ProjectReference Include="..\..\src\SmallInjector\SmallInjector.csproj" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="NUnit.Analyzers" Version="3.3.0" />
<PackageReference Include="coverlet.collector" Version="3.1.2" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,16 @@
namespace SmallInjector.Tests
{
public class Tests
{
[SetUp]
public void Setup()
{
}
[Test]
public void Test1()
{
Assert.Pass();
}
}
}

View File

@ -0,0 +1 @@
global using NUnit.Framework;