diff --git a/ConsoleApp1/ConsoleApp1.sln b/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..80cdd67 --- /dev/null +++ b/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.28729.10 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{559EB483-39E1-4C80-9431-782A0386CD3E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsApp1", "WindowsFormsApp1\WindowsFormsApp1.csproj", "{46C8A939-EF1C-44D2-A7A4-5D4D3F19A5C3}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {559EB483-39E1-4C80-9431-782A0386CD3E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {559EB483-39E1-4C80-9431-782A0386CD3E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {559EB483-39E1-4C80-9431-782A0386CD3E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {559EB483-39E1-4C80-9431-782A0386CD3E}.Release|Any CPU.Build.0 = Release|Any CPU + {46C8A939-EF1C-44D2-A7A4-5D4D3F19A5C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {46C8A939-EF1C-44D2-A7A4-5D4D3F19A5C3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {46C8A939-EF1C-44D2-A7A4-5D4D3F19A5C3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {46C8A939-EF1C-44D2-A7A4-5D4D3F19A5C3}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E548DFFA-3EB3-4DCB-9991-680642EDD305} + EndGlobalSection +EndGlobal diff --git a/ConsoleApp1/ConsoleApp1/App.config b/ConsoleApp1/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/ConsoleApp1/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj b/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..02aebc6 --- /dev/null +++ b/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {559EB483-39E1-4C80-9431-782A0386CD3E} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ConsoleApp1/ConsoleApp1/Program.cs b/ConsoleApp1/ConsoleApp1/Program.cs new file mode 100644 index 0000000..cd12845 --- /dev/null +++ b/ConsoleApp1/ConsoleApp1/Program.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class Program + { + static void Main(string[] args) + { + Debug.Print("Hallo Welt!"); + + + + double d = 0.0; + + for (int i = 0; i < 100000000000; i++) + { + Random rand = new Random(); + d = d + (double) rand.Next(); + } + + } +} + + + public static class cpu + { + + + public static void calc() + { + Debug.Print("Hallo Welt!"); + + + + double d = 0.0; + + for (int i = 0; i < 100000000000; i++) + { + Random rand = new Random(); + d = d + (double) rand.Next(); + } + + } + } + + } \ No newline at end of file diff --git a/ConsoleApp1/ConsoleApp1/Properties/AssemblyInfo.cs b/ConsoleApp1/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..a62c31b --- /dev/null +++ b/ConsoleApp1/ConsoleApp1/Properties/AssemblyInfo.cs @@ -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("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("ConsoleApp1")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2019")] +[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("559eb483-39e1-4c80-9431-782a0386cd3e")] + +// 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")] diff --git a/ConsoleApp1/WindowsFormsApp1/App.config b/ConsoleApp1/WindowsFormsApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/ConsoleApp1/WindowsFormsApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ConsoleApp1/WindowsFormsApp1/Form1.Designer.cs b/ConsoleApp1/WindowsFormsApp1/Form1.Designer.cs new file mode 100644 index 0000000..04debcd --- /dev/null +++ b/ConsoleApp1/WindowsFormsApp1/Form1.Designer.cs @@ -0,0 +1,61 @@ +namespace WindowsFormsApp1 +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.button1 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(333, 227); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 0; + this.button1.Text = "button1"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.Button1_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.button1); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button button1; + } +} + diff --git a/ConsoleApp1/WindowsFormsApp1/Form1.cs b/ConsoleApp1/WindowsFormsApp1/Form1.cs new file mode 100644 index 0000000..6bfb26e --- /dev/null +++ b/ConsoleApp1/WindowsFormsApp1/Form1.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace WindowsFormsApp1 +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void Button1_Click(object sender, EventArgs e) + { + + ConsoleApp1.cpu.calc(); + + + } + } +} diff --git a/ConsoleApp1/WindowsFormsApp1/Form1.resx b/ConsoleApp1/WindowsFormsApp1/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/ConsoleApp1/WindowsFormsApp1/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ConsoleApp1/WindowsFormsApp1/Program.cs b/ConsoleApp1/WindowsFormsApp1/Program.cs new file mode 100644 index 0000000..ee8c4ff --- /dev/null +++ b/ConsoleApp1/WindowsFormsApp1/Program.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace WindowsFormsApp1 +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + + + + + } + } +} diff --git a/ConsoleApp1/WindowsFormsApp1/Properties/AssemblyInfo.cs b/ConsoleApp1/WindowsFormsApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..db38e17 --- /dev/null +++ b/ConsoleApp1/WindowsFormsApp1/Properties/AssemblyInfo.cs @@ -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("WindowsFormsApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("WindowsFormsApp1")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2019")] +[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("46c8a939-ef1c-44d2-a7a4-5d4d3f19a5c3")] + +// 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")] diff --git a/ConsoleApp1/WindowsFormsApp1/Properties/Resources.Designer.cs b/ConsoleApp1/WindowsFormsApp1/Properties/Resources.Designer.cs new file mode 100644 index 0000000..b21d543 --- /dev/null +++ b/ConsoleApp1/WindowsFormsApp1/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WindowsFormsApp1.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormsApp1.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/ConsoleApp1/WindowsFormsApp1/Properties/Resources.resx b/ConsoleApp1/WindowsFormsApp1/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/ConsoleApp1/WindowsFormsApp1/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ConsoleApp1/WindowsFormsApp1/Properties/Settings.Designer.cs b/ConsoleApp1/WindowsFormsApp1/Properties/Settings.Designer.cs new file mode 100644 index 0000000..438df21 --- /dev/null +++ b/ConsoleApp1/WindowsFormsApp1/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WindowsFormsApp1.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/ConsoleApp1/WindowsFormsApp1/Properties/Settings.settings b/ConsoleApp1/WindowsFormsApp1/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/ConsoleApp1/WindowsFormsApp1/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/ConsoleApp1/WindowsFormsApp1/WindowsFormsApp1.csproj b/ConsoleApp1/WindowsFormsApp1/WindowsFormsApp1.csproj new file mode 100644 index 0000000..38214d6 --- /dev/null +++ b/ConsoleApp1/WindowsFormsApp1/WindowsFormsApp1.csproj @@ -0,0 +1,89 @@ + + + + + Debug + AnyCPU + {46C8A939-EF1C-44D2-A7A4-5D4D3F19A5C3} + WinExe + WindowsFormsApp1 + WindowsFormsApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + {559eb483-39e1-4c80-9431-782a0386cd3e} + ConsoleApp1 + + + + \ No newline at end of file diff --git a/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/.suo b/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/.suo index 0f1f400..99031cc 100644 Binary files a/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/.suo and b/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/.suo differ diff --git a/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/Server/sqlite3/storage.ide b/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/Server/sqlite3/storage.ide index a9c123b..c0e2c5b 100644 Binary files a/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/Server/sqlite3/storage.ide and b/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/Server/sqlite3/storage.ide differ diff --git a/WindowsFormsApp01/ClassLibrary01/obj/Debug/ClassLibrary01.csprojAssemblyReference.cache b/WindowsFormsApp01/ClassLibrary01/obj/Debug/ClassLibrary01.csprojAssemblyReference.cache index 271e57d..f42cdc6 100644 Binary files a/WindowsFormsApp01/ClassLibrary01/obj/Debug/ClassLibrary01.csprojAssemblyReference.cache and b/WindowsFormsApp01/ClassLibrary01/obj/Debug/ClassLibrary01.csprojAssemblyReference.cache differ diff --git a/WindowsFormsApp01/WindowsFormsApp01.sln b/WindowsFormsApp01/WindowsFormsApp01.sln index d46341e..b0a4d61 100644 --- a/WindowsFormsApp01/WindowsFormsApp01.sln +++ b/WindowsFormsApp01/WindowsFormsApp01.sln @@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsApp01", "Window EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassLibrary01", "ClassLibrary01\ClassLibrary01.csproj", "{4859A826-18E2-4C0C-A441-F77975E70E93}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsApp01Tests", "WindowsFormsApp01Tests\WindowsFormsApp01Tests.csproj", "{15248890-E77B-48F4-A738-777A95A563F8}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -21,6 +23,10 @@ Global {4859A826-18E2-4C0C-A441-F77975E70E93}.Debug|Any CPU.Build.0 = Debug|Any CPU {4859A826-18E2-4C0C-A441-F77975E70E93}.Release|Any CPU.ActiveCfg = Release|Any CPU {4859A826-18E2-4C0C-A441-F77975E70E93}.Release|Any CPU.Build.0 = Release|Any CPU + {15248890-E77B-48F4-A738-777A95A563F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {15248890-E77B-48F4-A738-777A95A563F8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {15248890-E77B-48F4-A738-777A95A563F8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {15248890-E77B-48F4-A738-777A95A563F8}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/WindowsFormsApp01/WindowsFormsApp01/Form1.cs b/WindowsFormsApp01/WindowsFormsApp01/Form1.cs index db45617..c124349 100644 --- a/WindowsFormsApp01/WindowsFormsApp01/Form1.cs +++ b/WindowsFormsApp01/WindowsFormsApp01/Form1.cs @@ -125,6 +125,8 @@ namespace WindowsFormsApp01 using (var p = _pen) { + //panel1.Width + //y axis graphics.DrawLine(p, 10, 10, 10, 246); @@ -271,5 +273,15 @@ namespace WindowsFormsApp01 CalcFinished(e); } } + + + public static int ADD(int i1, int i2) + { + int res = i1 + i2; + + return res; + + + } } } \ No newline at end of file diff --git a/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.exe b/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.exe index 7e3e7cc..ef7bb84 100644 Binary files a/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.exe and b/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.exe differ diff --git a/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.pdb b/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.pdb index 947a95b..7f8f230 100644 Binary files a/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.pdb and b/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.pdb differ diff --git a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.csprojAssemblyReference.cache b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.csprojAssemblyReference.cache index adc8293..c2a6ab9 100644 Binary files a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.csprojAssemblyReference.cache and b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.csprojAssemblyReference.cache differ diff --git a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.exe b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.exe index 7e3e7cc..ef7bb84 100644 Binary files a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.exe and b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.exe differ diff --git a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.pdb b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.pdb index 947a95b..7f8f230 100644 Binary files a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.pdb and b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.pdb differ diff --git a/WindowsFormsApp01/WindowsFormsApp01Tests/Properties/AssemblyInfo.cs b/WindowsFormsApp01/WindowsFormsApp01Tests/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..85ba873 --- /dev/null +++ b/WindowsFormsApp01/WindowsFormsApp01Tests/Properties/AssemblyInfo.cs @@ -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("WindowsFormsApp01Tests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("WindowsFormsApp01Tests")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2019")] +[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("15248890-e77b-48f4-a738-777a95a563f8")] + +// 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")] diff --git a/WindowsFormsApp01/WindowsFormsApp01Tests/WindowsFormsApp01Tests.csproj b/WindowsFormsApp01/WindowsFormsApp01Tests/WindowsFormsApp01Tests.csproj new file mode 100644 index 0000000..0a1d7e1 --- /dev/null +++ b/WindowsFormsApp01/WindowsFormsApp01Tests/WindowsFormsApp01Tests.csproj @@ -0,0 +1,106 @@ + + + + + Debug + AnyCPU + {15248890-E77B-48F4-A738-777A95A563F8} + Library + Properties + WindowsFormsApp01Tests + WindowsFormsApp01Tests + v4.7.2 + 512 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 10.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.1.3.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll + + + ..\packages\MSTest.TestFramework.1.3.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll + + + + + + + + + + + + + + + + + + + + + {DBFF6DA7-F137-4B21-A007-709E527369A5} + WindowsFormsApp01 + + + + + + + False + + + False + + + False + + + False + + + + + + + + + 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/WindowsFormsApp01/WindowsFormsApp01Tests/calcTests.cs b/WindowsFormsApp01/WindowsFormsApp01Tests/calcTests.cs new file mode 100644 index 0000000..fdbdd69 --- /dev/null +++ b/WindowsFormsApp01/WindowsFormsApp01Tests/calcTests.cs @@ -0,0 +1,25 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using WindowsFormsApp01; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace WindowsFormsApp01.Tests +{ + [TestClass()] + public class calcTests + { + [TestMethod()] + public void ADDTestPositive() + { + Assert.AreEqual(calc.ADD(1, 2), 3); + } + + public void ADDTestNegative() + { + Assert.AreEqual(calc.ADD(-1, -2), -3); + } + } +} \ No newline at end of file diff --git a/WindowsFormsApp01/WindowsFormsApp01Tests/packages.config b/WindowsFormsApp01/WindowsFormsApp01Tests/packages.config new file mode 100644 index 0000000..2f7c5a1 --- /dev/null +++ b/WindowsFormsApp01/WindowsFormsApp01Tests/packages.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/winVCR/VCRlogicTests/SvcrPlayTests.cs b/winVCR/VCRlogicTests/SvcrPlayTests.cs index 5f8f4a5..1e1d78a 100644 --- a/winVCR/VCRlogicTests/SvcrPlayTests.cs +++ b/winVCR/VCRlogicTests/SvcrPlayTests.cs @@ -4,6 +4,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using VCRlogic; namespace Tests { @@ -11,9 +12,19 @@ namespace Tests public class SvcrPlayTests { [TestMethod()] - public void evStopbuttonTest() + public void initTestTape() { - Assert.IsTrue(true); + + SMtape.initSMtape(); + + if (SMtape.getState() is StapeNoTapeIn) + { + Assert.IsTrue(true); + } + else + { + Assert.IsTrue(false); + } } } } \ No newline at end of file