diff --git a/Solution1/ClassLibrary1/Class1.cs b/Solution1/ClassLibrary1/Class1.cs new file mode 100644 index 0000000..dea3a9d --- /dev/null +++ b/Solution1/ClassLibrary1/Class1.cs @@ -0,0 +1,13 @@ +using System; + +namespace ClassLibrary1 +{ + public class Class1 + { + + public string Test() + { + return "this is a test"; + } + } +} \ No newline at end of file diff --git a/Solution1/ClassLibrary1/ClassLibrary1.csproj b/Solution1/ClassLibrary1/ClassLibrary1.csproj new file mode 100644 index 0000000..17ca88b --- /dev/null +++ b/Solution1/ClassLibrary1/ClassLibrary1.csproj @@ -0,0 +1,7 @@ + + + + netcoreapp2.2 + + + diff --git a/Solution1/Solution1.sln b/Solution1/Solution1.sln new file mode 100644 index 0000000..8a11b99 --- /dev/null +++ b/Solution1/Solution1.sln @@ -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 diff --git a/Solution1/TestProject1/TestProject1.csproj b/Solution1/TestProject1/TestProject1.csproj new file mode 100644 index 0000000..d4eca55 --- /dev/null +++ b/Solution1/TestProject1/TestProject1.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.2 + + false + + + + + + + + + + + + + diff --git a/Solution1/TestProject1/UnitTest1.cs b/Solution1/TestProject1/UnitTest1.cs new file mode 100644 index 0000000..596eaa4 --- /dev/null +++ b/Solution1/TestProject1/UnitTest1.cs @@ -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); + } + } +} \ No newline at end of file