From 85b58363ec5206ab4ac159ce55cf29b20a4b60c3 Mon Sep 17 00:00:00 2001 From: Dimitar Todorov <36155679+thermalthrottle@users.noreply.github.com> Date: Fri, 25 Mar 2022 17:10:55 +0200 Subject: [PATCH] Added NUnit Test Project --- RentACar/RentACar.sln | 10 ++++++++-- RentACar/Unit Tests/Unit Tests.csproj | 17 +++++++++++++++++ RentACar/Unit Tests/UnitTest1.cs | 18 ++++++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 RentACar/Unit Tests/Unit Tests.csproj create mode 100644 RentACar/Unit Tests/UnitTest1.cs diff --git a/RentACar/RentACar.sln b/RentACar/RentACar.sln index ed6961a..1858c0b 100644 --- a/RentACar/RentACar.sln +++ b/RentACar/RentACar.sln @@ -1,12 +1,14 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.32106.194 +# Visual Studio Version 17 +VisualStudioVersion = 17.1.32228.430 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApp", "WebApp\WebApp.csproj", "{FD105E4B-8B22-41FA-A754-BF199782A366}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Data", "Data\Data.csproj", "{CAF59A92-38E8-4115-9761-7F4A6E90848F}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unit Tests", "Unit Tests\Unit Tests.csproj", "{14BE8EAC-8625-43C9-99AA-46442CED0808}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution 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}.Release|Any CPU.ActiveCfg = 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 GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/RentACar/Unit Tests/Unit Tests.csproj b/RentACar/Unit Tests/Unit Tests.csproj new file mode 100644 index 0000000..f989849 --- /dev/null +++ b/RentACar/Unit Tests/Unit Tests.csproj @@ -0,0 +1,17 @@ + + + + net5.0 + Unit_Tests + + false + + + + + + + + + + diff --git a/RentACar/Unit Tests/UnitTest1.cs b/RentACar/Unit Tests/UnitTest1.cs new file mode 100644 index 0000000..336590b --- /dev/null +++ b/RentACar/Unit Tests/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Unit_Tests +{ + public class Tests + { + [SetUp] + public void Setup() + { + } + + [Test] + public void Test1() + { + Assert.Pass(); + } + } +} \ No newline at end of file