From 6ccb44e8127dd9cda53b414b16beea9555cef460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Priskin?= Date: Fri, 20 Jan 2023 19:09:00 +0100 Subject: [PATCH] =?UTF-8?q?Egys=C3=A9gteszt=20hozz=C3=A1ad=C3=A1sa.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MerkozesTest/MerkozesTest.csproj | 20 ++++++++++++++++++++ MerkozesTest/UnitTest1.cs | 20 ++++++++++++++++++++ Merkozesek.sln | 6 ++++++ Merkozesek/Merkozes.cs | 2 +- 4 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 MerkozesTest/MerkozesTest.csproj create mode 100644 MerkozesTest/UnitTest1.cs diff --git a/MerkozesTest/MerkozesTest.csproj b/MerkozesTest/MerkozesTest.csproj new file mode 100644 index 0000000..200c692 --- /dev/null +++ b/MerkozesTest/MerkozesTest.csproj @@ -0,0 +1,20 @@ + + + + net5.0 + + false + + + + + + + + + + + + + + diff --git a/MerkozesTest/UnitTest1.cs b/MerkozesTest/UnitTest1.cs new file mode 100644 index 0000000..920f6f7 --- /dev/null +++ b/MerkozesTest/UnitTest1.cs @@ -0,0 +1,20 @@ +using NUnit.Framework; + +namespace MerkozesTest +{ + public class Tests + { + Merkozesek.Merkozes merk; + [SetUp] + public void Setup() + { + merk = new Merkozesek.Merkozes("2 3 2 2 1 elsocsapat masodikcsapat"); + } + + [Test] + public void Test1() + { + Assert.AreEqual("masodikcsapat",merk.Vendeg); + } + } +} \ No newline at end of file diff --git a/Merkozesek.sln b/Merkozesek.sln index 632cb9f..065bfd8 100644 --- a/Merkozesek.sln +++ b/Merkozesek.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 16.0.32802.440 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Merkozesek", "Merkozesek\Merkozesek.csproj", "{966D2934-E2EA-4546-8738-5B9320FB97E3}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MerkozesTest", "MerkozesTest\MerkozesTest.csproj", "{3FF5D236-EB21-4533-83C5-8099D1E0BF35}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {966D2934-E2EA-4546-8738-5B9320FB97E3}.Debug|Any CPU.Build.0 = Debug|Any CPU {966D2934-E2EA-4546-8738-5B9320FB97E3}.Release|Any CPU.ActiveCfg = Release|Any CPU {966D2934-E2EA-4546-8738-5B9320FB97E3}.Release|Any CPU.Build.0 = Release|Any CPU + {3FF5D236-EB21-4533-83C5-8099D1E0BF35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3FF5D236-EB21-4533-83C5-8099D1E0BF35}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3FF5D236-EB21-4533-83C5-8099D1E0BF35}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3FF5D236-EB21-4533-83C5-8099D1E0BF35}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Merkozesek/Merkozes.cs b/Merkozesek/Merkozes.cs index 4cc1666..3f89f5a 100644 --- a/Merkozesek/Merkozes.cs +++ b/Merkozesek/Merkozes.cs @@ -26,7 +26,7 @@ namespace Merkozesek HazaiRugottFelido = int.Parse(t[3]); VendegRugottFelido = int.Parse(t[4]); Hazai = t[5]; - Vendeg = t[6]; + Vendeg = t[5]; } public override string ToString()