diff --git a/HW05UNIT/UNIT.Tests/UNIT.Tests.csproj b/HW05UNIT/UNIT.Tests/UNIT.Tests.csproj new file mode 100644 index 0000000..3fce8aa --- /dev/null +++ b/HW05UNIT/UNIT.Tests/UNIT.Tests.csproj @@ -0,0 +1,22 @@ + + + + net7.0 + enable + enable + + false + + + + + + + + + + + + + + diff --git a/HW05UNIT/UNIT.Tests/UnitTest1.cs b/HW05UNIT/UNIT.Tests/UnitTest1.cs new file mode 100644 index 0000000..23d0094 --- /dev/null +++ b/HW05UNIT/UNIT.Tests/UnitTest1.cs @@ -0,0 +1,10 @@ +namespace UNIT.Tests; + +[TestClass] +public class UnitTest1 +{ + [TestMethod] + public void TestMethod1() + { + } +} \ No newline at end of file diff --git a/HW05UNIT/UNIT.Tests/Usings.cs b/HW05UNIT/UNIT.Tests/Usings.cs new file mode 100644 index 0000000..ab67c7e --- /dev/null +++ b/HW05UNIT/UNIT.Tests/Usings.cs @@ -0,0 +1 @@ +global using Microsoft.VisualStudio.TestTools.UnitTesting; \ No newline at end of file diff --git a/HW05UNIT/UNIT/MyUnit.cs b/HW05UNIT/UNIT/MyUnit.cs new file mode 100644 index 0000000..e517aea --- /dev/null +++ b/HW05UNIT/UNIT/MyUnit.cs @@ -0,0 +1,22 @@ +using System; +using System.Reflection; + +namespace Unit; + + +class MyUnit +{ + static void Main(string[] args) + { + if (args.Count() == 1) + { + Console.WriteLine("Running tests"); + } + else + { + Console.WriteLine("Incorrect arguments count"); + } + + Console.Read(); + } +} \ No newline at end of file diff --git a/HW05UNIT/UNIT/Tester.cs b/HW05UNIT/UNIT/Tester.cs new file mode 100644 index 0000000..e69de29 diff --git a/HW05UNIT/UNIT/UNIT.csproj b/HW05UNIT/UNIT/UNIT.csproj new file mode 100644 index 0000000..f02677b --- /dev/null +++ b/HW05UNIT/UNIT/UNIT.csproj @@ -0,0 +1,10 @@ + + + + Exe + net7.0 + enable + enable + + + diff --git a/HW05UNIT/UNIT/UNIT.sln b/HW05UNIT/UNIT/UNIT.sln new file mode 100644 index 0000000..06b71ec --- /dev/null +++ b/HW05UNIT/UNIT/UNIT.sln @@ -0,0 +1,28 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UNIT", "UNIT.csproj", "{C9A24FB4-660C-4241-B75F-B22D4309D52B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UNIT.Tests", "..\UNIT.Tests\UNIT.Tests.csproj", "{1671CDD6-2892-4B83-9EBB-4301C858E3A2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C9A24FB4-660C-4241-B75F-B22D4309D52B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C9A24FB4-660C-4241-B75F-B22D4309D52B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C9A24FB4-660C-4241-B75F-B22D4309D52B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C9A24FB4-660C-4241-B75F-B22D4309D52B}.Release|Any CPU.Build.0 = Release|Any CPU + {1671CDD6-2892-4B83-9EBB-4301C858E3A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1671CDD6-2892-4B83-9EBB-4301C858E3A2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1671CDD6-2892-4B83-9EBB-4301C858E3A2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1671CDD6-2892-4B83-9EBB-4301C858E3A2}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal