From cf4d77eed0763f5044fa11846d9d38fdf4555bf5 Mon Sep 17 00:00:00 2001 From: tothgergo Date: Mon, 5 Oct 2026 09:25:33 +0200 Subject: [PATCH] Add project files. --- NUnitTest/NUnitTest.csproj | 27 ++++++ NUnitTest/UnitTest1.cs | 28 ++++++ Test261005Feladat.slnx | 4 + Test261005Feladat/App.config | 6 ++ Test261005Feladat/DataRecord.cs | 46 ++++++++++ Test261005Feladat/Program.cs | 23 +++++ Test261005Feladat/Properties/AssemblyInfo.cs | 33 +++++++ Test261005Feladat/Test261005Feladat.csproj | 79 +++++++++++++++++ Test261005Feladat/packages.config | 7 ++ Unittest/Properties/AssemblyInfo.cs | 20 +++++ Unittest/UnitTest1.cs | 16 ++++ Unittest/Unittest.csproj | 91 ++++++++++++++++++++ Unittest/packages.config | 9 ++ 13 files changed, 389 insertions(+) create mode 100644 NUnitTest/NUnitTest.csproj create mode 100644 NUnitTest/UnitTest1.cs create mode 100644 Test261005Feladat.slnx create mode 100644 Test261005Feladat/App.config create mode 100644 Test261005Feladat/DataRecord.cs create mode 100644 Test261005Feladat/Program.cs create mode 100644 Test261005Feladat/Properties/AssemblyInfo.cs create mode 100644 Test261005Feladat/Test261005Feladat.csproj create mode 100644 Test261005Feladat/packages.config create mode 100644 Unittest/Properties/AssemblyInfo.cs create mode 100644 Unittest/UnitTest1.cs create mode 100644 Unittest/Unittest.csproj create mode 100644 Unittest/packages.config diff --git a/NUnitTest/NUnitTest.csproj b/NUnitTest/NUnitTest.csproj new file mode 100644 index 0000000..978594b --- /dev/null +++ b/NUnitTest/NUnitTest.csproj @@ -0,0 +1,27 @@ + + + + net10.0 + latest + enable + enable + false + + + + + + + + + + + + + + + + + + + diff --git a/NUnitTest/UnitTest1.cs b/NUnitTest/UnitTest1.cs new file mode 100644 index 0000000..fd847f0 --- /dev/null +++ b/NUnitTest/UnitTest1.cs @@ -0,0 +1,28 @@ +using Test261005Feladat; + +namespace NUnitTest +{ + public class Tests + { + [SetUp] + public void Setup() + { + } + + [Test] + public void Test1() + { + + + DataRecord dr = new DataRecord("Adam,7"); + + if(dr.getSquaredValue() == dr.ertek*dr.ertek) + { + Assert.Pass(); + } + + + + } + } +} diff --git a/Test261005Feladat.slnx b/Test261005Feladat.slnx new file mode 100644 index 0000000..2b50d24 --- /dev/null +++ b/Test261005Feladat.slnx @@ -0,0 +1,4 @@ + + + + diff --git a/Test261005Feladat/App.config b/Test261005Feladat/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/Test261005Feladat/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Test261005Feladat/DataRecord.cs b/Test261005Feladat/DataRecord.cs new file mode 100644 index 0000000..93b3462 --- /dev/null +++ b/Test261005Feladat/DataRecord.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Test261005Feladat +{ + public class DataRecord + { + public string nev; + public int ertek; + public DataRecord(string adatsor) + { + try + { + nev = adatsor.Split(',')[0]; + ertek = int.Parse(adatsor.Split(',')[1]); + } + catch (Exception err) + { + Console.WriteLine(err); + } + } + public int getSquaredValue() + { + return ertek*ertek; + } + public double multiplyValue(double szorzo) + { + return ertek*szorzo; + } + public bool isEven() + { + if (ertek%2 == 0) + { + return true; + } + else + { + return false; + } + } + } + +} diff --git a/Test261005Feladat/Program.cs b/Test261005Feladat/Program.cs new file mode 100644 index 0000000..f70f9cb --- /dev/null +++ b/Test261005Feladat/Program.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.IO; + +namespace Test261005Feladat +{ + internal class Program + { + static void Main(string[] args) + + { + Console.WriteLine("Add meg a jájl nevét"); + string fajl = Console.ReadLine(); + StreamReader sr = new StreamReader(fajl); + + + + } + } +} diff --git a/Test261005Feladat/Properties/AssemblyInfo.cs b/Test261005Feladat/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..3c74d75 --- /dev/null +++ b/Test261005Feladat/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Test261005Feladat")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Test261005Feladat")] +[assembly: AssemblyCopyright("Copyright © 2026")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("dd11e921-99ea-424f-bd1a-baea23d46ef0")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Test261005Feladat/Test261005Feladat.csproj b/Test261005Feladat/Test261005Feladat.csproj new file mode 100644 index 0000000..840e705 --- /dev/null +++ b/Test261005Feladat/Test261005Feladat.csproj @@ -0,0 +1,79 @@ + + + + + + Debug + AnyCPU + {DD11E921-99EA-424F-BD1A-BAEA23D46EF0} + Exe + Test261005Feladat + Test261005Feladat + v4.7.2 + 512 + true + true + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\NUnit.5.0.0\lib\net462\nunit.framework.dll + + + ..\packages\NUnit.5.0.0\lib\net462\nunit.framework.legacy.dll + + + + + ..\packages\System.Runtime.CompilerServices.Unsafe.6.1.2\lib\net462\System.Runtime.CompilerServices.Unsafe.dll + + + ..\packages\System.Threading.Tasks.Extensions.4.6.3\lib\net462\System.Threading.Tasks.Extensions.dll + + + + + + + + + + + + + + + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + \ No newline at end of file diff --git a/Test261005Feladat/packages.config b/Test261005Feladat/packages.config new file mode 100644 index 0000000..3c21b94 --- /dev/null +++ b/Test261005Feladat/packages.config @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Unittest/Properties/AssemblyInfo.cs b/Unittest/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..56b0e9e --- /dev/null +++ b/Unittest/Properties/AssemblyInfo.cs @@ -0,0 +1,20 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Unittest")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Unittest")] +[assembly: AssemblyCopyright("Copyright © 2026")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +[assembly: ComVisible(false)] + +[assembly: Guid("d54acb2c-181b-4805-9af6-992391ed7952")] + +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Unittest/UnitTest1.cs b/Unittest/UnitTest1.cs new file mode 100644 index 0000000..823a657 --- /dev/null +++ b/Unittest/UnitTest1.cs @@ -0,0 +1,16 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; + + +namespace Unittest +{ + [TestClass] + public class UnitTest1 + { + [TestMethod] + public void TestMethod1() + { + + } + } +} diff --git a/Unittest/Unittest.csproj b/Unittest/Unittest.csproj new file mode 100644 index 0000000..62066ad --- /dev/null +++ b/Unittest/Unittest.csproj @@ -0,0 +1,91 @@ + + + + + + + Debug + AnyCPU + {D54ACB2C-181B-4805-9AF6-992391ED7952} + Library + Properties + Unittest + Unittest + v4.7.2 + 512 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 15.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages + False + UnitTest + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\MSTest.TestFramework.2.2.10\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll + + + ..\packages\MSTest.TestFramework.2.2.10\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll + + + ..\packages\NUnit.5.0.0\lib\net462\nunit.framework.dll + + + ..\packages\NUnit.5.0.0\lib\net462\nunit.framework.legacy.dll + + + + + ..\packages\System.Runtime.CompilerServices.Unsafe.6.1.2\lib\net462\System.Runtime.CompilerServices.Unsafe.dll + + + ..\packages\System.Threading.Tasks.Extensions.4.6.3\lib\net462\System.Threading.Tasks.Extensions.dll + + + + + + + + + + + + + {dd11e921-99ea-424f-bd1a-baea23d46ef0} + Test261005Feladat + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + + + + + \ No newline at end of file diff --git a/Unittest/packages.config b/Unittest/packages.config new file mode 100644 index 0000000..9ebcdd2 --- /dev/null +++ b/Unittest/packages.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file