unit test
This commit is contained in:
@@ -6,13 +6,13 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace Fibonacci {
|
namespace Fibonacci {
|
||||||
internal class Program {
|
internal class Program {
|
||||||
public static ulong fibonacci(int darab) {
|
/*public static ulong fibonacci(int darab) {
|
||||||
if ((darab == 0) || (darab == 1)) {
|
if ((darab == 0) || (darab == 1)) {
|
||||||
return Convert.ToUInt64(darab);
|
return Convert.ToUInt64(darab);
|
||||||
} else {
|
} else {
|
||||||
return fibonacci(darab - 1) + fibonacci(darab - 2);
|
return fibonacci(darab - 1) + fibonacci(darab - 2);
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
static void Main(string[] args) {
|
static void Main(string[] args) {
|
||||||
Console.WriteLine("Adja meg hány számot akar látni");
|
Console.WriteLine("Adja meg hány számot akar látni");
|
||||||
|
|||||||
17
c-sharp.sln
17
c-sharp.sln
@@ -61,6 +61,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Negyszog", "Negyszog\Negysz
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NegyszogUnitTest", "NegyszogUnitTest\NegyszogUnitTest.csproj", "{2933E8F3-3C69-4429-AC6A-7875DB77DAD6}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NegyszogUnitTest", "NegyszogUnitTest\NegyszogUnitTest.csproj", "{2933E8F3-3C69-4429-AC6A-7875DB77DAD6}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "csv", "csv\csv.csproj", "{D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@@ -269,6 +271,7 @@ Global
|
|||||||
{F2CDBA8F-B782-4B1C-A5E6-0EBE9F1AE3C2}.Release|Any CPU.Build.0 = Release|Any CPU
|
{F2CDBA8F-B782-4B1C-A5E6-0EBE9F1AE3C2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{F2CDBA8F-B782-4B1C-A5E6-0EBE9F1AE3C2}.Release|x64.ActiveCfg = Release|Any CPU
|
{F2CDBA8F-B782-4B1C-A5E6-0EBE9F1AE3C2}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
{F2CDBA8F-B782-4B1C-A5E6-0EBE9F1AE3C2}.Release|x64.Build.0 = Release|Any CPU
|
{F2CDBA8F-B782-4B1C-A5E6-0EBE9F1AE3C2}.Release|x64.Build.0 = Release|Any CPU
|
||||||
|
<<<<<<< HEAD
|
||||||
{95611FCF-2765-4679-86FA-1212921A0D06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{95611FCF-2765-4679-86FA-1212921A0D06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{95611FCF-2765-4679-86FA-1212921A0D06}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{95611FCF-2765-4679-86FA-1212921A0D06}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{95611FCF-2765-4679-86FA-1212921A0D06}.Debug|x64.ActiveCfg = Debug|Any CPU
|
{95611FCF-2765-4679-86FA-1212921A0D06}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
@@ -301,6 +304,20 @@ Global
|
|||||||
{2933E8F3-3C69-4429-AC6A-7875DB77DAD6}.Release|Any CPU.Build.0 = Release|Any CPU
|
{2933E8F3-3C69-4429-AC6A-7875DB77DAD6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{2933E8F3-3C69-4429-AC6A-7875DB77DAD6}.Release|x64.ActiveCfg = Release|Any CPU
|
{2933E8F3-3C69-4429-AC6A-7875DB77DAD6}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
{2933E8F3-3C69-4429-AC6A-7875DB77DAD6}.Release|x64.Build.0 = Release|Any CPU
|
{2933E8F3-3C69-4429-AC6A-7875DB77DAD6}.Release|x64.Build.0 = Release|Any CPU
|
||||||
|
=======
|
||||||
|
<<<<<<< HEAD
|
||||||
|
{D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
|
{D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Debug|x64.Build.0 = Debug|Any CPU
|
||||||
|
{D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
|
{D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Release|x64.Build.0 = Release|Any CPU
|
||||||
|
=======
|
||||||
|
>>>>>>> cbdc00b78c8377e68a29aab9c4aa4ff6d7ffe5e0
|
||||||
|
>>>>>>> 101aa2fb434556debb8939ef883c8221e1e332b8
|
||||||
|
>>>>>>> aa7898d30284c6d163ff6cc64f11ed8f53e33cae
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
6
csv/App.config
Normal file
6
csv/App.config
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
||||||
35
csv/Program.cs
Normal file
35
csv/Program.cs
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.IO;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
|
namespace csv {
|
||||||
|
internal class Program {
|
||||||
|
static void Main(string[] args) {
|
||||||
|
StreamWriter writer = new StreamWriter(@"adatok.csv", false, Encoding.Default);
|
||||||
|
Random random = new Random();
|
||||||
|
Stopwatch stopwatch = new Stopwatch();
|
||||||
|
|
||||||
|
stopwatch.Start();
|
||||||
|
|
||||||
|
for (long i = 0; i < 10000000; i++) {
|
||||||
|
for (long j = 0; j < 5; j++) {
|
||||||
|
writer.Write(random.Next(-100000, 100000) + ";");
|
||||||
|
}
|
||||||
|
if (i % 1000000 == 0) { Console.WriteLine(i); }
|
||||||
|
writer.WriteLine();
|
||||||
|
}
|
||||||
|
|
||||||
|
stopwatch.Stop();
|
||||||
|
|
||||||
|
writer.Close();
|
||||||
|
Console.WriteLine("kiiras kesz");
|
||||||
|
Console.WriteLine("Eltelt ido: " + stopwatch.Elapsed);
|
||||||
|
Console.ReadKey();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
36
csv/Properties/AssemblyInfo.cs
Normal file
36
csv/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
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("csv")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("csv")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2022")]
|
||||||
|
[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("d8c331c6-6363-4c0b-91aa-71cc8a27ee6b")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
BIN
csv/bin/Debug/csv.exe
Normal file
BIN
csv/bin/Debug/csv.exe
Normal file
Binary file not shown.
6
csv/bin/Debug/csv.exe.config
Normal file
6
csv/bin/Debug/csv.exe.config
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
||||||
BIN
csv/bin/Debug/csv.pdb
Normal file
BIN
csv/bin/Debug/csv.pdb
Normal file
Binary file not shown.
BIN
csv/bin/Release/csv.exe
Normal file
BIN
csv/bin/Release/csv.exe
Normal file
Binary file not shown.
6
csv/bin/Release/csv.exe.config
Normal file
6
csv/bin/Release/csv.exe.config
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
||||||
BIN
csv/bin/Release/csv.pdb
Normal file
BIN
csv/bin/Release/csv.pdb
Normal file
Binary file not shown.
53
csv/csv.csproj
Normal file
53
csv/csv.csproj
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>csv</RootNamespace>
|
||||||
|
<AssemblyName>csv</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
||||||
BIN
csv/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
BIN
csv/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
Binary file not shown.
BIN
csv/obj/Debug/csv.csproj.AssemblyReference.cache
Normal file
BIN
csv/obj/Debug/csv.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
1
csv/obj/Debug/csv.csproj.CoreCompileInputs.cache
Normal file
1
csv/obj/Debug/csv.csproj.CoreCompileInputs.cache
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2f1b5aa9ca9324e732c8dc8ad98b9a6b4836d80a
|
||||||
8
csv/obj/Debug/csv.csproj.FileListAbsolute.txt
Normal file
8
csv/obj/Debug/csv.csproj.FileListAbsolute.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
C:\dev\c#\csv\bin\Debug\csv.exe.config
|
||||||
|
C:\dev\c#\csv\bin\Debug\csv.exe
|
||||||
|
C:\dev\c#\csv\bin\Debug\csv.pdb
|
||||||
|
C:\dev\c#\csv\obj\Debug\csv.csproj.AssemblyReference.cache
|
||||||
|
C:\dev\c#\csv\obj\Debug\csv.csproj.SuggestedBindingRedirects.cache
|
||||||
|
C:\dev\c#\csv\obj\Debug\csv.csproj.CoreCompileInputs.cache
|
||||||
|
C:\dev\c#\csv\obj\Debug\csv.exe
|
||||||
|
C:\dev\c#\csv\obj\Debug\csv.pdb
|
||||||
BIN
csv/obj/Debug/csv.exe
Normal file
BIN
csv/obj/Debug/csv.exe
Normal file
Binary file not shown.
BIN
csv/obj/Debug/csv.pdb
Normal file
BIN
csv/obj/Debug/csv.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
||||||
BIN
csv/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
BIN
csv/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
Binary file not shown.
BIN
csv/obj/Release/csv.csproj.AssemblyReference.cache
Normal file
BIN
csv/obj/Release/csv.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
1
csv/obj/Release/csv.csproj.CoreCompileInputs.cache
Normal file
1
csv/obj/Release/csv.csproj.CoreCompileInputs.cache
Normal file
@@ -0,0 +1 @@
|
|||||||
|
b1cac3c5db117414049b7ee1b7ead321fc446162
|
||||||
8
csv/obj/Release/csv.csproj.FileListAbsolute.txt
Normal file
8
csv/obj/Release/csv.csproj.FileListAbsolute.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
C:\dev\c#\csv\bin\Release\csv.exe.config
|
||||||
|
C:\dev\c#\csv\bin\Release\csv.exe
|
||||||
|
C:\dev\c#\csv\bin\Release\csv.pdb
|
||||||
|
C:\dev\c#\csv\obj\Release\csv.csproj.AssemblyReference.cache
|
||||||
|
C:\dev\c#\csv\obj\Release\csv.csproj.SuggestedBindingRedirects.cache
|
||||||
|
C:\dev\c#\csv\obj\Release\csv.csproj.CoreCompileInputs.cache
|
||||||
|
C:\dev\c#\csv\obj\Release\csv.exe
|
||||||
|
C:\dev\c#\csv\obj\Release\csv.pdb
|
||||||
BIN
csv/obj/Release/csv.exe
Normal file
BIN
csv/obj/Release/csv.exe
Normal file
Binary file not shown.
BIN
csv/obj/Release/csv.pdb
Normal file
BIN
csv/obj/Release/csv.pdb
Normal file
Binary file not shown.
Reference in New Issue
Block a user