diff options
author | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-02 13:52:09 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-02 13:52:09 +0000 |
commit | 9407ece5903e4856868ee8234b505e4b2ef32012 (patch) | |
tree | 9554eed4f0bec5da56b60a712ae1fd98ea80df1e | |
parent | 9e5cd91ede18789e43eee4393d4b69e7ae7a46e8 (diff) | |
download | newsaggregator-9407ece5903e4856868ee8234b505e4b2ef32012.tar.gz newsaggregator-9407ece5903e4856868ee8234b505e4b2ef32012.tar.bz2 newsaggregator-9407ece5903e4856868ee8234b505e4b2ef32012.zip |
Added unit tests for testing methods (test driven development)
-rw-r--r-- | Aggregator/Aggregator.sln | 10 | ||||
-rw-r--r-- | Aggregator/Tests/Tests.csproj | 20 | ||||
-rw-r--r-- | Aggregator/Tests/UnitTest1.cs | 11 |
3 files changed, 39 insertions, 2 deletions
diff --git a/Aggregator/Aggregator.sln b/Aggregator/Aggregator.sln index 66fb4f8..3449b02 100644 --- a/Aggregator/Aggregator.sln +++ b/Aggregator/Aggregator.sln @@ -3,9 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.28307.271 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Parser", "Parser\Parser.csproj", "{CB7E60D1-BA25-46C1-BFCA-83A0897AE26D}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Parser", "Parser\Parser.csproj", "{CB7E60D1-BA25-46C1-BFCA-83A0897AE26D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Classes", "Classes\Classes.csproj", "{AB1F3DD4-1B23-427A-8F32-C11EC20A0815}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Classes", "Classes\Classes.csproj", "{AB1F3DD4-1B23-427A-8F32-C11EC20A0815}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{E9ED051D-909D-464F-99E2-5BA57BD06D00}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -21,6 +23,10 @@ Global {AB1F3DD4-1B23-427A-8F32-C11EC20A0815}.Debug|Any CPU.Build.0 = Debug|Any CPU {AB1F3DD4-1B23-427A-8F32-C11EC20A0815}.Release|Any CPU.ActiveCfg = Release|Any CPU {AB1F3DD4-1B23-427A-8F32-C11EC20A0815}.Release|Any CPU.Build.0 = Release|Any CPU + {E9ED051D-909D-464F-99E2-5BA57BD06D00}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E9ED051D-909D-464F-99E2-5BA57BD06D00}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E9ED051D-909D-464F-99E2-5BA57BD06D00}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E9ED051D-909D-464F-99E2-5BA57BD06D00}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Aggregator/Tests/Tests.csproj b/Aggregator/Tests/Tests.csproj new file mode 100644 index 0000000..bd52966 --- /dev/null +++ b/Aggregator/Tests/Tests.csproj @@ -0,0 +1,20 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <TargetFramework>netcoreapp2.1</TargetFramework> + + <IsPackable>false</IsPackable> + </PropertyGroup> + + <ItemGroup> + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" /> + <PackageReference Include="xunit" Version="2.4.0" /> + <PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" /> + </ItemGroup> + + <ItemGroup> + <ProjectReference Include="..\Classes\Classes.csproj" /> + <ProjectReference Include="..\Parser\Parser.csproj" /> + </ItemGroup> + +</Project> diff --git a/Aggregator/Tests/UnitTest1.cs b/Aggregator/Tests/UnitTest1.cs new file mode 100644 index 0000000..29d2d62 --- /dev/null +++ b/Aggregator/Tests/UnitTest1.cs @@ -0,0 +1,11 @@ +using System; +using Xunit; + +namespace Tests { + public class UnitTest1 { + [Fact] + public void Test1() { + + } + } +} |