Added NUnit Test Project
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 16.0.32106.194
|
VisualStudioVersion = 17.1.32228.430
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApp", "WebApp\WebApp.csproj", "{FD105E4B-8B22-41FA-A754-BF199782A366}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApp", "WebApp\WebApp.csproj", "{FD105E4B-8B22-41FA-A754-BF199782A366}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Data", "Data\Data.csproj", "{CAF59A92-38E8-4115-9761-7F4A6E90848F}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Data", "Data\Data.csproj", "{CAF59A92-38E8-4115-9761-7F4A6E90848F}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unit Tests", "Unit Tests\Unit Tests.csproj", "{14BE8EAC-8625-43C9-99AA-46442CED0808}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@@ -21,6 +23,10 @@ Global
|
|||||||
{CAF59A92-38E8-4115-9761-7F4A6E90848F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{CAF59A92-38E8-4115-9761-7F4A6E90848F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{CAF59A92-38E8-4115-9761-7F4A6E90848F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{CAF59A92-38E8-4115-9761-7F4A6E90848F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{CAF59A92-38E8-4115-9761-7F4A6E90848F}.Release|Any CPU.Build.0 = Release|Any CPU
|
{CAF59A92-38E8-4115-9761-7F4A6E90848F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{14BE8EAC-8625-43C9-99AA-46442CED0808}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{14BE8EAC-8625-43C9-99AA-46442CED0808}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{14BE8EAC-8625-43C9-99AA-46442CED0808}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{14BE8EAC-8625-43C9-99AA-46442CED0808}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
17
RentACar/Unit Tests/Unit Tests.csproj
Normal file
17
RentACar/Unit Tests/Unit Tests.csproj
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
|
<RootNamespace>Unit_Tests</RootNamespace>
|
||||||
|
|
||||||
|
<IsPackable>false</IsPackable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
|
||||||
|
<PackageReference Include="NUnit" Version="3.13.2" />
|
||||||
|
<PackageReference Include="NUnit3TestAdapter" Version="4.0.0" />
|
||||||
|
<PackageReference Include="coverlet.collector" Version="3.1.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
18
RentACar/Unit Tests/UnitTest1.cs
Normal file
18
RentACar/Unit Tests/UnitTest1.cs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
namespace Unit_Tests
|
||||||
|
{
|
||||||
|
public class Tests
|
||||||
|
{
|
||||||
|
[SetUp]
|
||||||
|
public void Setup()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void Test1()
|
||||||
|
{
|
||||||
|
Assert.Pass();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user