From: <br...@us...> - 2009-09-01 21:21:43
|
Revision: 559 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=559&view=rev Author: brus07 Date: 2009-09-01 21:21:33 +0000 (Tue, 01 Sep 2009) Log Message: ----------- Added new empty main form. Modified Paths: -------------- nera/projects/nera.tester.gui.sample/trunk/Build.dependencies nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj Added Paths: ----------- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs Property Changed: ---------------- nera/projects/nera.tester.gui.sample/trunk/ Property changes on: nera/projects/nera.tester.gui.sample/trunk ___________________________________________________________________ Modified: svn:ignore - *.suo + *.suo build obj Modified: nera/projects/nera.tester.gui.sample/trunk/Build.dependencies =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Build.dependencies 2009-09-01 19:26:14 UTC (rev 558) +++ nera/projects/nera.tester.gui.sample/trunk/Build.dependencies 2009-09-01 21:21:33 UTC (rev 559) @@ -19,6 +19,8 @@ <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Xml" /> + <Reference Include="System.Drawing" /> + <Reference Include="System.Windows.Forms" /> </ItemGroup> <Choose> Modified: nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-09-01 19:26:14 UTC (rev 558) +++ nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-09-01 21:21:33 UTC (rev 559) @@ -3,7 +3,7 @@ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{EF5E06AD-7D8A-476c-AFDB-9BACFB144615}</ProjectGuid> + <ProjectGuid>{EF5E06AD-7D8A-476C-AFDB-9BACFB144615}</ProjectGuid> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -13,7 +13,5 @@ <!-- Added for making the difference in Build.dependencies file between sources & tests projects --> <ProjectKind>ComponentSources</ProjectKind> </PropertyGroup> - <Import Project="Reference.targets" /> - </Project> \ No newline at end of file Added: nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs 2009-09-01 21:21:33 UTC (rev 559) @@ -0,0 +1,38 @@ +namespace Nera.Tester.Gui.Sample +{ + partial class MainForm + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Text = "MainForm"; + } + + #endregion + } +} \ No newline at end of file Added: nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs 2009-09-01 21:21:33 UTC (rev 559) @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace Nera.Tester.Gui.Sample +{ + public partial class MainForm : Form + { + public MainForm() + { + InitializeComponent(); + } + } +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-09-05 10:14:18
|
Revision: 562 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=562&view=rev Author: brus07 Date: 2009-09-05 10:14:11 +0000 (Sat, 05 Sep 2009) Log Message: ----------- Update WinForm to work state. Modified Paths: -------------- nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs Added Paths: ----------- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.resx Removed Paths: ------------- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs Modified: nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-09-05 06:51:56 UTC (rev 561) +++ nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-09-05 10:14:11 UTC (rev 562) @@ -14,4 +14,10 @@ <ProjectKind>ComponentSources</ProjectKind> </PropertyGroup> <Import Project="Reference.targets" /> + <ItemGroup> + <EmbeddedResource Include="src\csharp\main\Nera\Tester\Gui\Sample\MainForm.resx"> + <SubType>Designer</SubType> + <DependentUpon>MainForm.cs</DependentUpon> + </EmbeddedResource> + </ItemGroup> </Project> \ No newline at end of file Deleted: nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs 2009-09-05 06:51:56 UTC (rev 561) +++ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs 2009-09-05 10:14:11 UTC (rev 562) @@ -1,38 +0,0 @@ -namespace Nera.Tester.Gui.Sample -{ - partial class MainForm - { - /// <summary> - /// Required designer variable. - /// </summary> - private System.ComponentModel.IContainer components = null; - - /// <summary> - /// Clean up any resources being used. - /// </summary> - /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// <summary> - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// </summary> - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Text = "MainForm"; - } - - #endregion - } -} \ No newline at end of file Modified: nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs 2009-09-05 06:51:56 UTC (rev 561) +++ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs 2009-09-05 10:14:11 UTC (rev 562) @@ -10,9 +10,79 @@ { public partial class MainForm : Form { + private Label label1; + private Button button1; + private TextBox textBox2; + private TextBox textBox1; + public MainForm() { InitializeComponent(); } + + private void InitializeComponent() + { + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.button1 = new System.Windows.Forms.Button(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.SuspendLayout(); + // + // textBox1 + // + this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBox1.Location = new System.Drawing.Point(12, 25); + this.textBox1.Multiline = true; + this.textBox1.Name = "textBox1"; + this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox1.Size = new System.Drawing.Size(440, 126); + this.textBox1.TabIndex = 0; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(12, 9); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(69, 13); + this.label1.TabIndex = 1; + this.label1.Text = "SourceCode:"; + // + // button1 + // + this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.button1.Location = new System.Drawing.Point(12, 157); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(440, 23); + this.button1.TabIndex = 2; + this.button1.Text = "Submit"; + this.button1.UseVisualStyleBackColor = true; + // + // textBox2 + // + this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBox2.Location = new System.Drawing.Point(12, 186); + this.textBox2.Multiline = true; + this.textBox2.Name = "textBox2"; + this.textBox2.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox2.Size = new System.Drawing.Size(440, 68); + this.textBox2.TabIndex = 3; + // + // MainForm + // + this.ClientSize = new System.Drawing.Size(464, 266); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.button1); + this.Controls.Add(this.label1); + this.Controls.Add(this.textBox1); + this.Name = "MainForm"; + this.Text = "MainForm"; + this.ResumeLayout(false); + this.PerformLayout(); + + } } } \ No newline at end of file Added: nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.resx =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.resx (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.resx 2009-09-05 10:14:11 UTC (rev 562) @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-09-06 10:31:17
|
Revision: 564 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=564&view=rev Author: brus07 Date: 2009-09-06 10:31:10 +0000 (Sun, 06 Sep 2009) Log Message: ----------- Added Data library to lib folder and include in project. Modified Paths: -------------- nera/projects/nera.tester.gui.sample/trunk/Build.dependencies Added Paths: ----------- nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Data.Test.dll Modified: nera/projects/nera.tester.gui.sample/trunk/Build.dependencies =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Build.dependencies 2009-09-05 10:25:41 UTC (rev 563) +++ nera/projects/nera.tester.gui.sample/trunk/Build.dependencies 2009-09-06 10:31:10 UTC (rev 564) @@ -16,6 +16,10 @@ </PropertyGroup> <ItemGroup> + <Reference Include="Nera.Tester.Data, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>lib\Nera.Tester.Data.dll</HintPath> + </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Xml" /> Added: nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Data.Test.dll =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Data.Test.dll ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-09-22 10:33:21
|
Revision: 565 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=565&view=rev Author: brus07 Date: 2009-09-22 10:33:12 +0000 (Tue, 22 Sep 2009) Log Message: ----------- Create Mock project for emulate Nera.Tester.Runner. This Mock emulate need functionality. Delete unnecessary file Nera.Tester.Data.Test.dll and copy Nera.Tester.Data.dll. Copy data.xsd file to test file directory. Modified Paths: -------------- nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui.sample VS 2005.sln nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs Added Paths: ----------- nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/ nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Class1.cs nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Nera.Tester.Runner.Mock.csproj nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Properties/ nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Properties/AssemblyInfo.cs nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/lib/ nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/lib/AcmLibraryExtention.dll nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Data.dll nera/projects/nera.tester.gui.sample/trunk/test_files/data.xsd Removed Paths: ------------- nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Data.Test.dll Modified: nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-09-06 10:31:10 UTC (rev 564) +++ nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-09-22 10:33:12 UTC (rev 565) @@ -20,4 +20,10 @@ <DependentUpon>MainForm.cs</DependentUpon> </EmbeddedResource> </ItemGroup> + <ItemGroup> + <ProjectReference Include="Nera.Tester.Runner.Mock\Nera.Tester.Runner.Mock.csproj"> + <Project>{90AC3983-05CD-4586-97B5-4376FF831827}</Project> + <Name>Nera.Tester.Runner.Mock</Name> + </ProjectReference> + </ItemGroup> </Project> \ No newline at end of file Modified: nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj 2009-09-06 10:31:10 UTC (rev 564) +++ nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj 2009-09-22 10:33:12 UTC (rev 565) @@ -3,7 +3,7 @@ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{FF0BA05D-5DEB-4b8c-898A-146C2D43B6EA}</ProjectGuid> + <ProjectGuid>{FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}</ProjectGuid> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -13,7 +13,19 @@ <!-- Added for making the difference in Build.dependencies file between sources & tests projects --> <ProjectKind>ComponentTests</ProjectKind> </PropertyGroup> - <Import Project="Reference.targets" /> + <ItemGroup> + <ProjectReference Include="Nera.Tester.Runner.Mock\Nera.Tester.Runner.Mock.csproj"> + <Project>{90AC3983-05CD-4586-97B5-4376FF831827}</Project> + <Name>Nera.Tester.Runner.Mock</Name> + </ProjectReference> + </ItemGroup> + <ItemGroup> + <XSDFile Include="$(TestFilesDir)\data.xsd" /> + </ItemGroup> + <Target Name="TestSetup" DependsOnTargets="Build"> + <Copy SourceFiles="@(XSDFile)" DestinationFiles="@(XSDFile->'$(OutputPath)%(RecursiveDir)%(Filename)%(Extension)')" /> + </Target> + </Project> \ No newline at end of file Property changes on: nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock ___________________________________________________________________ Added: svn:ignore + bin obj Added: nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Class1.cs =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Class1.cs (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Class1.cs 2009-09-22 10:33:12 UTC (rev 565) @@ -0,0 +1,22 @@ +using System; +using Nera.Tester.Data; + +namespace Nera.Tester.Runner +{ + public class Checker + { + public static string GetResult(string message) + { + string s = AcmContester.Library.LibraryExtention.Configuration.ExecutablePath; + + //TODO: + Submit submit = Submit.CreateFromXml(message); + Result result = new Result(submit); + + result.compOutput = "--"; + result.res = "Accepted"; + + return result.ToStringX(); + } + } +} Added: nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Nera.Tester.Runner.Mock.csproj =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Nera.Tester.Runner.Mock.csproj (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Nera.Tester.Runner.Mock.csproj 2009-09-22 10:33:12 UTC (rev 565) @@ -0,0 +1,55 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>8.0.50727</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{90AC3983-05CD-4586-97B5-4376FF831827}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>Nera.Tester.Runner</RootNamespace> + <AssemblyName>Nera.Tester.Runner</AssemblyName> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <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' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="AcmLibraryExtention, Version=1.0.3482.26401, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>lib\AcmLibraryExtention.dll</HintPath> + </Reference> + <Reference Include="Nera.Tester.Data, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\lib\Nera.Tester.Data.dll</HintPath> + </Reference> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Class1.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Added: nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Properties/AssemblyInfo.cs =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Properties/AssemblyInfo.cs (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/Properties/AssemblyInfo.cs 2009-09-22 10:33:12 UTC (rev 565) @@ -0,0 +1,35 @@ +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("Nera.Tester.Runner.Mock")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Nera.Tester.Runner.Mock")] +[assembly: AssemblyCopyright("Copyright © 2009")] +[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("23e10d27-6f54-48cb-b4b6-8df47fe14d5f")] + +// 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 Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Added: nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/lib/AcmLibraryExtention.dll =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.gui.sample/trunk/Nera.Tester.Runner.Mock/lib/AcmLibraryExtention.dll ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Deleted: nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Data.Test.dll =================================================================== (Binary files differ) Added: nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Data.dll =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Data.dll ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui.sample VS 2005.sln =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui.sample VS 2005.sln 2009-09-06 10:31:10 UTC (rev 564) +++ nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui.sample VS 2005.sln 2009-09-22 10:33:12 UTC (rev 565) @@ -5,15 +5,26 @@ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Tests", "Component Tests.csproj", "{FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nera.Tester.Runner.Mock", "Nera.Tester.Runner.Mock\Nera.Tester.Runner.Mock.csproj", "{90AC3983-05CD-4586-97B5-4376FF831827}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {EF5E06AD-7D8A-476C-AFDB-9BACFB144615}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {EF5E06AD-7D8A-476C-AFDB-9BACFB144615}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EF5E06AD-7D8A-476C-AFDB-9BACFB144615}.Release|Any CPU.ActiveCfg = Debug|Any CPU + {EF5E06AD-7D8A-476C-AFDB-9BACFB144615}.Release|Any CPU.Build.0 = Debug|Any CPU {FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}.Release|Any CPU.ActiveCfg = Debug|Any CPU + {FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}.Release|Any CPU.Build.0 = Debug|Any CPU + {90AC3983-05CD-4586-97B5-4376FF831827}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {90AC3983-05CD-4586-97B5-4376FF831827}.Debug|Any CPU.Build.0 = Debug|Any CPU + {90AC3983-05CD-4586-97B5-4376FF831827}.Release|Any CPU.ActiveCfg = Release|Any CPU + {90AC3983-05CD-4586-97B5-4376FF831827}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE Modified: nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs 2009-09-06 10:31:10 UTC (rev 564) +++ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs 2009-09-22 10:33:12 UTC (rev 565) @@ -5,15 +5,16 @@ using System.Drawing; using System.Text; using System.Windows.Forms; +using Nera.Tester.Data; namespace Nera.Tester.Gui.Sample { public partial class MainForm : Form { private Label label1; - private Button button1; - private TextBox textBox2; - private TextBox textBox1; + private Button submitButton; + private TextBox resultTextBox; + private TextBox sourceTextBox; public MainForm() { @@ -22,22 +23,22 @@ private void InitializeComponent() { - this.textBox1 = new System.Windows.Forms.TextBox(); + this.sourceTextBox = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); - this.button1 = new System.Windows.Forms.Button(); - this.textBox2 = new System.Windows.Forms.TextBox(); + this.submitButton = new System.Windows.Forms.Button(); + this.resultTextBox = new System.Windows.Forms.TextBox(); this.SuspendLayout(); // - // textBox1 + // sourceTextBox // - this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.sourceTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.textBox1.Location = new System.Drawing.Point(12, 25); - this.textBox1.Multiline = true; - this.textBox1.Name = "textBox1"; - this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.textBox1.Size = new System.Drawing.Size(440, 126); - this.textBox1.TabIndex = 0; + this.sourceTextBox.Location = new System.Drawing.Point(12, 25); + this.sourceTextBox.Multiline = true; + this.sourceTextBox.Name = "sourceTextBox"; + this.sourceTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.sourceTextBox.Size = new System.Drawing.Size(440, 126); + this.sourceTextBox.TabIndex = 0; // // label1 // @@ -48,41 +49,57 @@ this.label1.TabIndex = 1; this.label1.Text = "SourceCode:"; // - // button1 + // submitButton // - this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.submitButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.button1.Location = new System.Drawing.Point(12, 157); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(440, 23); - this.button1.TabIndex = 2; - this.button1.Text = "Submit"; - this.button1.UseVisualStyleBackColor = true; + this.submitButton.Location = new System.Drawing.Point(12, 157); + this.submitButton.Name = "submitButton"; + this.submitButton.Size = new System.Drawing.Size(440, 23); + this.submitButton.TabIndex = 2; + this.submitButton.Text = "Submit"; + this.submitButton.UseVisualStyleBackColor = true; + this.submitButton.Click += new System.EventHandler(this.submitButton_Click); // - // textBox2 + // resultTextBox // - this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.resultTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.textBox2.Location = new System.Drawing.Point(12, 186); - this.textBox2.Multiline = true; - this.textBox2.Name = "textBox2"; - this.textBox2.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.textBox2.Size = new System.Drawing.Size(440, 68); - this.textBox2.TabIndex = 3; + this.resultTextBox.Location = new System.Drawing.Point(12, 186); + this.resultTextBox.Multiline = true; + this.resultTextBox.Name = "resultTextBox"; + this.resultTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.resultTextBox.Size = new System.Drawing.Size(440, 68); + this.resultTextBox.TabIndex = 3; // // MainForm // this.ClientSize = new System.Drawing.Size(464, 266); - this.Controls.Add(this.textBox2); - this.Controls.Add(this.button1); + this.Controls.Add(this.resultTextBox); + this.Controls.Add(this.submitButton); this.Controls.Add(this.label1); - this.Controls.Add(this.textBox1); + this.Controls.Add(this.sourceTextBox); this.Name = "MainForm"; this.Text = "MainForm"; this.ResumeLayout(false); this.PerformLayout(); } + + private void submitButton_Click(object sender, EventArgs e) + { + Submit submit = new Submit(); + submit.id = (new Random((int)(DateTime.Now.Ticks))).Next(1000); + submit.language = 1; + submit.pbolemID = 1; + submit.sourceCode = sourceTextBox.Text; + + string resultMessage = Nera.Tester.Runner.Checker.GetResult(submit.ToString()); + Result result = Result.CreateFromXml(resultMessage); + + string newResult = result.Submit.id.ToString() + " - " + result.res; + resultTextBox.Text = newResult + Environment.NewLine + resultTextBox.Text; + } } } \ No newline at end of file Added: nera/projects/nera.tester.gui.sample/trunk/test_files/data.xsd =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/test_files/data.xsd (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/test_files/data.xsd 2009-09-22 10:33:12 UTC (rev 565) @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="utf-8"?> +<xs:schema id="XMLSchema1" elementFormDefault="qualified" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:complexType name="submitType"> + <xs:sequence maxOccurs="1"> + <!-- потрібно щоб ці записи могли слідувати у довільному порядку --> + <xs:element name="id" type="xs:positiveInteger" /> + <xs:element name="problem" type="xs:positiveInteger" /> + <xs:element name="sourceCode" type="xs:string" /> + <xs:element name="language"> + <!-- обмеження для ID мови програмування --> + <xs:simpleType> + <xs:restriction base="xs:int"> + <xs:maxInclusive value="100" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + </xs:sequence> + </xs:complexType> + <xs:complexType name="submitIOIType"> + <xs:sequence> + <xs:element name="submit" type="submitType" /> + <xs:element name="name" type="xs:string" /> + <xs:element name="form" type="xs:positiveInteger" /> + <xs:element name="school" type="xs:string" minOccurs="0" /> + </xs:sequence> + </xs:complexType> + <xs:element name="submitList"> + <xs:complexType> + <xs:sequence> + <xs:sequence> + <xs:element name="submit" type="submitType" maxOccurs="unbounded" minOccurs="0" /> + </xs:sequence> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:complexType name="resultType"> + <xs:sequence> + <xs:element name="res" type="xs:string" /> + <xs:element name="result" type="xs:int" /> + <xs:element name="usedTime" type="xs:double" /> + <xs:element name="usedMemory" type="xs:double" /> + <xs:element name="compOutput" type="xs:string" /> + <xs:element name="submit" type="submitType" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="resultIOIType"> + <xs:sequence> + <xs:element name="res" type="xs:string" /> + <xs:element name="result" type="xs:int" /> + <xs:element name="usedTime" type="xs:double" /> + <xs:element name="usedMemory" type="xs:double" /> + <xs:element name="compOutput" type="xs:string" /> + <xs:element name="testResults" type="testResultList" minOccurs="0" /> + <xs:element name="submitioi" type="submitIOIType" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="testResultList"> + <xs:sequence> + <xs:sequence> + <xs:element name="TestResIoi" type="testResultIoiType" maxOccurs="unbounded" minOccurs="0" /> + </xs:sequence> + </xs:sequence> + </xs:complexType> + <xs:complexType name="testResultIoiType"> + <xs:sequence> + <!-- обмеження для ID: не має бути відємним --> + <xs:element name="id" type="xs:int" /> + <xs:element name="res" type="xs:string" /> + <xs:element name="usedTime" type="xs:double" /> + <xs:element name="usedMemory" type="xs:double" /> + <xs:element name="input" type="xs:string" /> + <xs:element name="output" type="xs:string" /> + <xs:element name="contestantOutput" type="xs:string" /> + <xs:element name="point" type="xs:int" /> + </xs:sequence> + </xs:complexType> + <xs:element name="result" type="resultType"> + </xs:element> + <xs:element name="submit" type="submitType"> + </xs:element> + <xs:element name="submitioi" type="submitIOIType"> + </xs:element> + <xs:element name="resultioi" type="resultIOIType"> + </xs:element> +</xs:schema> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-10-07 08:56:53
|
Revision: 566 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=566&view=rev Author: brus07 Date: 2009-10-07 08:56:45 +0000 (Wed, 07 Oct 2009) Log Message: ----------- Change reference in real project to real Runner and in test project left reference to Runner.Mock for easy testing (without full testing with compile). Modified Paths: -------------- nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj Added Paths: ----------- nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Runner.dll Modified: nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-09-22 10:33:12 UTC (rev 565) +++ nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-10-07 08:56:45 UTC (rev 566) @@ -21,9 +21,9 @@ </EmbeddedResource> </ItemGroup> <ItemGroup> - <ProjectReference Include="Nera.Tester.Runner.Mock\Nera.Tester.Runner.Mock.csproj"> - <Project>{90AC3983-05CD-4586-97B5-4376FF831827}</Project> - <Name>Nera.Tester.Runner.Mock</Name> - </ProjectReference> + <Reference Include="Nera.Tester.Runner, Version=1.0.3552.17261, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>lib\Nera.Tester.Runner.dll</HintPath> + </Reference> </ItemGroup> </Project> \ No newline at end of file Modified: nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj 2009-09-22 10:33:12 UTC (rev 565) +++ nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj 2009-10-07 08:56:45 UTC (rev 566) @@ -15,17 +15,15 @@ </PropertyGroup> <Import Project="Reference.targets" /> <ItemGroup> - <ProjectReference Include="Nera.Tester.Runner.Mock\Nera.Tester.Runner.Mock.csproj"> - <Project>{90AC3983-05CD-4586-97B5-4376FF831827}</Project> - <Name>Nera.Tester.Runner.Mock</Name> - </ProjectReference> - </ItemGroup> - - <ItemGroup> <XSDFile Include="$(TestFilesDir)\data.xsd" /> </ItemGroup> <Target Name="TestSetup" DependsOnTargets="Build"> <Copy SourceFiles="@(XSDFile)" DestinationFiles="@(XSDFile->'$(OutputPath)%(RecursiveDir)%(Filename)%(Extension)')" /> </Target> - + <ItemGroup> + <ProjectReference Include="Nera.Tester.Runner.Mock\Nera.Tester.Runner.Mock.csproj"> + <Project>{90AC3983-05CD-4586-97B5-4376FF831827}</Project> + <Name>Nera.Tester.Runner.Mock</Name> + </ProjectReference> + </ItemGroup> </Project> \ No newline at end of file Added: nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Runner.dll =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.gui.sample/trunk/lib/Nera.Tester.Runner.dll ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |