Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpagel committed Oct 10, 2019
1 parent f81737a commit 9c502f8
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Solution1/ClassLibrary1/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;

namespace ClassLibrary1
{
public class Class1
{

public string Test()
{
return "this is a test";
}
}
}
7 changes: 7 additions & 0 deletions Solution1/ClassLibrary1/ClassLibrary1.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>

</Project>
22 changes: 22 additions & 0 deletions Solution1/Solution1.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassLibrary1", "ClassLibrary1\ClassLibrary1.csproj", "{C636FA6E-6708-4F2B-8CA1-177889127674}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestProject1", "TestProject1\TestProject1.csproj", "{AEBF8B9C-4A3E-4F05-BE08-74F00E171651}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C636FA6E-6708-4F2B-8CA1-177889127674}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C636FA6E-6708-4F2B-8CA1-177889127674}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C636FA6E-6708-4F2B-8CA1-177889127674}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C636FA6E-6708-4F2B-8CA1-177889127674}.Release|Any CPU.Build.0 = Release|Any CPU
{AEBF8B9C-4A3E-4F05-BE08-74F00E171651}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AEBF8B9C-4A3E-4F05-BE08-74F00E171651}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AEBF8B9C-4A3E-4F05-BE08-74F00E171651}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AEBF8B9C-4A3E-4F05-BE08-74F00E171651}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
19 changes: 19 additions & 0 deletions Solution1/TestProject1/TestProject1.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
<PackageReference Include="MSTest.TestAdapter" Version="1.4.0" />
<PackageReference Include="MSTest.TestFramework" Version="1.4.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ClassLibrary1\ClassLibrary1.csproj" />
</ItemGroup>

</Project>
18 changes: 18 additions & 0 deletions Solution1/TestProject1/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using ClassLibrary1;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace TestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
var obj = new Class1();
var response = obj.Test();

Assert.AreEqual("this is a test", response);
}
}
}

0 comments on commit 9c502f8

Please sign in to comment.