Skip to content

Commit

Permalink
add: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantin.ovsyannikov committed Nov 23, 2023
1 parent 284fe20 commit 8f9041a
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 0 deletions.
22 changes: 22 additions & 0 deletions HW05UNIT/UNIT.Tests/UNIT.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

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

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
<PackageReference Include="coverlet.collector" Version="3.1.2" />
</ItemGroup>

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

</Project>
10 changes: 10 additions & 0 deletions HW05UNIT/UNIT.Tests/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace UNIT.Tests;

[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
}
}
1 change: 1 addition & 0 deletions HW05UNIT/UNIT.Tests/Usings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global using Microsoft.VisualStudio.TestTools.UnitTesting;
22 changes: 22 additions & 0 deletions HW05UNIT/UNIT/MyUnit.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System;
using System.Reflection;

namespace Unit;


class MyUnit
{
static void Main(string[] args)
{
if (args.Count<string>() == 1)
{
Console.WriteLine("Running tests");
}
else
{
Console.WriteLine("Incorrect arguments count");
}

Console.Read();
}
}
Empty file added HW05UNIT/UNIT/Tester.cs
Empty file.
10 changes: 10 additions & 0 deletions HW05UNIT/UNIT/UNIT.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
28 changes: 28 additions & 0 deletions HW05UNIT/UNIT/UNIT.sln
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8f9041a

Please sign in to comment.