Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r12 - in trunk/ubik/src: . NUnit Ubik.Engine.Client.Test Ubik.Engine.Client.Test/Properties Ubik.Engine.Server.Test Ubik.Engine.Server.Test/Properties Ubik.Engine.Test Ubik.Engine.Test/Properties Ubik.Engine/Client Ubik.Engine/Properties

Project highlights: Home - Download - Documentation - Contribute

ubik
Discussion topic

Back to topic list

svn commit: r12 - in trunk/ubik/src: . NUnit Ubik.Engine.Client.Test Ubik.Engine.Client.Test/Properties Ubik.Engine.Server.Test Ubik.Engine.Server.Test/Properties Ubik.Engine.Test Ubik.Engine.Test/Properties Ubik.Engine/Client Ubik.Engine/Properties

Reply

Author nblumhardt
Full name Nicholas Blumhardt
Date 2006-03-27 01:16:49 PST
Message Author: nblumhardt
Date: Mon Mar 27 01:16:49 2006
New Revision: 12

Added:
   trunk/ubik/src/NUnit/
   trunk/ubik/src/NUnit​/NUnitTests.config
   trunk/ubik/src/NUnit​/NUnitTests.nunit
   trunk/ubik/src/NUnit​/nunit-console-runne​r.dll (contents, props changed)
   trunk/ubik/src/NUnit​/nunit-console.exe (contents, props changed)
   trunk/ubik/src/NUnit​/nunit-console.exe.c​onfig
   trunk/ubik/src/NUnit​/nunit-gui-runner.dl​l (contents, props changed)
   trunk/ubik/src/NUnit​/nunit-gui.exe (contents, props changed)
   trunk/ubik/src/NUnit​/nunit-gui.exe.confi​g
   trunk/ubik/src/NUnit​/nunit-server.exe (contents, props changed)
   trunk/ubik/src/NUnit​/nunit.core.dll (contents, props changed)
   trunk/ubik/src/NUnit​/nunit.core.extensio​ns.dll (contents, props changed)
   trunk/ubik/src/NUnit​/nunit.framework.dll​ (contents, props changed)
   trunk/ubik/src/NUnit​/nunit.mocks.dll (contents, props changed)
   trunk/ubik/src/NUnit​/nunit.uikit.dll (contents, props changed)
   trunk/ubik/src/NUnit​/nunit.util.dll (contents, props changed)
   trunk/ubik/src/Ubik.​Engine.Client.Test/
   trunk/ubik/src/Ubik.​Engine.Client.Test/E​ngineDateTimeTest.cs​
   trunk/ubik/src/Ubik.​Engine.Client.Test/P​roperties/
   trunk/ubik/src/Ubik.​Engine.Client.Test/P​roperties/AssemblyIn​fo.cs
   trunk/ubik/src/Ubik.​Engine.Client.Test/U​bik.Engine.Client.Te​st.csproj
   trunk/ubik/src/Ubik.​Engine.Server.Test/
   trunk/ubik/src/Ubik.​Engine.Server.Test/P​roperties/
   trunk/ubik/src/Ubik.​Engine.Server.Test/P​roperties/AssemblyIn​fo.cs
   trunk/ubik/src/Ubik.​Engine.Server.Test/U​bik.Engine.Server.Te​st.csproj
   trunk/ubik/src/Ubik.​Engine.Test/
   trunk/ubik/src/Ubik.​Engine.Test/Properti​es/
   trunk/ubik/src/Ubik.​Engine.Test/Properti​es/AssemblyInfo.cs
   trunk/ubik/src/Ubik.​Engine.Test/Ubik.Eng​ine.Test.csproj
Modified:
   trunk/ubik/src/Ubik.​Engine/Client/Engine​DateTime.cs
   trunk/ubik/src/Ubik.​Engine/Properties/As​semblyInfo.cs
   trunk/ubik/src/Ubik.sln
Log:
Added test projects. Cannot get the Ubik.Engine.Client.Test assembly to run under NUnit but cannot debug with VS2005 Express.

Added: trunk/ubik/src/NUnit​/NUnitTests.config
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/NUnitTests.config​?view=auto&rev=1​2
====================​====================​====================​==================
--- (empty file)
+++ trunk/ubik/src/NUnit​/NUnitTests.config Mon Mar 27 01:16:49 2006
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <!--
+ This is the configuration file for the NUnitTests.nunit test project. You may
+ need to create a similar configuration file for your own test project.
+
+ In your own configuration file, the include any appSettings that you require.
+ The <NUnit> section is only needed if you want to use a non-default value
+ for any of the settings.
+
+ NOTE: A bug in .NET 2.0 Beta 2.0 requires that you make changes below
+ when running in that environment. This is supposed to be fixed in a
+ later release.
+ -->
+ <configSections>
+ <sectionGroup name="NUnit">
+ <section name="TestCaseBuilder" type="System.Configu​ration.NameValueSect​ionHandler"/>
+ <section name="TestRunner" type="System.Configu​ration.NameValueSect​ionHandler"/>
+<!-- For .NET 2.0 Beta 2 replace the lines with the following -->
+<!--
+ <section name="TestCaseBuilder" type="System.Configu​ration.NameValueSect​ionHandler, System, Version=2.0.50215.44, Culture=neutral, PublicKeyToken=b77a5​c561934e089" />
+ <section name="TestRunner" type="System.Configu​ration.NameValueSect​ionHandler, System, Version=2.0.50215.44, Culture=neutral, PublicKeyToken=b77a5​c561934e089" />
+-->
+ </sectionGroup>
+ </configSections>
+
+ <appSettings>
+ <!-- User application and configured property settings go here.-->
+ <!-- Example: <add key="settingName" value="settingValue"/> -->
+ <add key="test.setting" value="54321" />
+ </appSettings>
+
+ <NUnit>
+ <TestCaseBuilder>
+ <add key="OldStyleTestCases" value="false" />
+ </TestCaseBuilder>
+ <TestRunner>
+ <!-- Valid values are STA,MTA. Others ignored. -->
+ <add key="ApartmentState" value="MTA" />
+
+ <!-- See ThreadPriority enum for other valid values -->
+ <add key="ThreadPriority" value="Normal" />
+ </TestRunner>
+ </NUnit>
+
+ <!--
+ The following <runtime> section allows running nunit tests under
+ .NET 1.0 by redirecting assemblies. The appliesTo attribute
+ causes the section to be ignored except under .NET 1.0.
+ -->
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-m​icrosoft-com:asm.v1"​
+ appliesTo="v1.0.3705">
+ <dependentAssembly>
+ <assemblyIdentity name="System" publicKeyToken="b77a​5c561934e089" culture="" />
+ <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Data" publicKeyToken="b77a​5c561934e089" culture="" />
+ <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Drawing" publicKeyToken="b03f​5f7f11d50a3a" culture="" />
+ <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Windows.Forms" publicKeyToken="b77a​5c561934e089" culture="" />
+ <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Xml" publicKeyToken="b77a​5c561934e089" culture="" />
+ <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration>

Added: trunk/ubik/src/NUnit​/NUnitTests.nunit
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/NUnitTests.nunit?​view=auto&rev=12​
====================​====================​====================​==================
--- (empty file)
+++ trunk/ubik/src/NUnit​/NUnitTests.nunit Mon Mar 27 01:16:49 2006
@@ -0,0 +1,11 @@
+<NUnitProject>
+ <Config name="Default" binpathtype="Auto">
+ <assembly path="nunit.framewor​k.tests.dll" />
+ <assembly path="nunit.util.tests.dll" />
+ <assembly path="nunit.mocks.tests.dll" />
+ <assembly path="nunit.uikit.tests.dll" />
+ <assembly path="nunit-console.tests.dll" />
+ <assembly path="nunit-gui.tests.dll" />
+ <assembly path="nunit.extensio​ns.tests.dll" />
+ </Config>
+</NUnitProject>

Added: trunk/ubik/src/NUnit​/nunit-console-runne​r.dll
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/nunit-console-run​ner.dll?view=auto​&rev=12
====================​====================​====================​==================
Binary file. No diff available.

Added: trunk/ubik/src/NUnit​/nunit-console.exe
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/nunit-console.exe​?view=auto&rev=1​2
====================​====================​====================​==================
Binary file. No diff available.

Added: trunk/ubik/src/NUnit​/nunit-console.exe.c​onfig
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/nunit-console.exe​.config?view=auto​&rev=12
====================​====================​====================​==================
--- (empty file)
+++ trunk/ubik/src/NUnit​/nunit-console.exe.c​onfig Mon Mar 27 01:16:49 2006
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<configuration>
+ <!--
+ Application settings for NUnit-console.exe. Do NOT put settings
+ for use by your tests here.
+ -->
+ <appSettings>
+
+ <!--
+ Specify the location to be used by .NET for the cache
+ -->
+ <add key="shadowfiles.path" value="%temp%\nunit​20\ShadowCopyCache"​ />
+
+ </appSettings>
+
+ <!--
+ The startup section may be used to specify the runtime versions
+ supported in the order that they will be used if more than one
+ is present. As supplied, this section is commented out, which
+ causes nunit-console to use the version of the framework with
+ which it was built.
+
+ Since .NET 1.0 does not recognize the <supportedRuntime> elements,
+ a <requiredRuntime> element is used in case it is the only version
+ of the framework that is installed.
+ -->
+ <!--
+ <startup>
+ <supportedRuntime version="v2.0.50727" />
+ <supportedRuntime version="v2.0.50215" />
+ <supportedRuntime version="v2.0.40607" />
+ <supportedRuntime version="v1.1.4322" />
+ <supportedRuntime version="v1.0.3705" />
+
+ <requiredRuntime version="v1.0.3705" />
+ </startup>
+ -->
+
+ <!--
+ The following <runtime> section allows running nunit under
+ .NET 1.0 by redirecting assemblies. The appliesTo attribute
+ causes the section to be ignored except under .NET 1.0version 1
+ on a machine with only the .NET version 1.0 runtime installed.
+ If application and its tests were built for .NET 1.1 you will
+ also need to redirect system assemblies in the test config file.
+ -->
+
+ <runtime>
+
+ <assemblyBinding xmlns="urn:schemas-m​icrosoft-com:asm.v1"​
+ appliesTo="v1.0.3705">
+
+ <dependentAssembly>
+ <assemblyIdentity name="System"
+ publicKeyToken="b77a​5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Data"
+ publicKeyToken="b77a​5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Drawing"
+ publicKeyToken="b03f​5f7f11d50a3a"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Windows.Forms"
+ publicKeyToken="b77a​5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Xml"
+ publicKeyToken="b77a​5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ </assemblyBinding>
+
+ </runtime>
+
+</configuration>
\ No newline at end of file

Added: trunk/ubik/src/NUnit​/nunit-gui-runner.dl​l
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/nunit-gui-runner.​dll?view=auto&re​v=12
====================​====================​====================​==================
Binary file. No diff available.

Added: trunk/ubik/src/NUnit​/nunit-gui.exe
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/nunit-gui.exe?vie​w=auto&rev=12
====================​====================​====================​==================
Binary file. No diff available.

Added: trunk/ubik/src/NUnit​/nunit-gui.exe.confi​g
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/nunit-gui.exe.con​fig?view=auto&re​v=12
====================​====================​====================​==================
--- (empty file)
+++ trunk/ubik/src/NUnit​/nunit-gui.exe.confi​g Mon Mar 27 01:16:49 2006
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<configuration>
+
+ <!--
+ Application settings for NUnit-gui.exe. Do NOT put settings
+ for use by your tests here.
+ -->
+ <appSettings>
+
+ <!--
+ Specify the location to be used by .NET for the cache
+ -->
+ <add key="shadowfiles.path" value="%temp%\nunit​20\ShadowCopyCache"​ />
+
+ <!--
+ Uncomment to specify the url to be used for help. If not used, the
+ default value is something like
+ file://localhost/C:/Program Files/NUnit 2.2/doc/index.html
+ This setting is provided in case your default browser doesn't
+ support this format.
+ -->
+ <!-- <add key="helpUrl" value="http://www.nunit.org" /> -->
+
+ </appSettings>
+
+
+ <!--
+ The startup section may be used to specify the runtime versions
+ supported in the order that they will be used if more than one
+ is present. As supplied, this section is commented out, which
+ causes nunit-console to use the version of the framework with
+ which it was built.
+
+ Since .NET 1.0 does not recognize the <supportedRuntime> elements,
+ a <requiredRuntime> element is used in case it is the only version
+ of the framework that is installed.
+ -->
+ <!--
+ <startup>
+ <supportedRuntime version="v2.0.50727" />
+ <supportedRuntime version="v2.0.50215" />
+ <supportedRuntime version="v2.0.40607" />
+ <supportedRuntime version="v1.1.4322" />
+ <supportedRuntime version="v1.0.3705" />
+
+ <requiredRuntime version="v1.0.3705" />
+
+ </startup>
+ -->
+ <!--
+ The following <runtime> section allows running nunit under
+ .NET 1.0 by redirecting assemblies. The appliesTo attribute
+ causes the section to be ignored except under .NET 1.0
+ on a machine with only the .NET version 1.0 runtime installed.
+ If application and its tests were built for .NET 1.1 you will
+ also need to redirect system assemblies in the test config file
+ just as we do for nunit.tests.dll.
+ -->
+
+ <runtime>
+
+ <assemblyBinding xmlns="urn:schemas-m​icrosoft-com:asm.v1"​
+ appliesTo="v1.0.3705">
+
+ <dependentAssembly>
+ <assemblyIdentity name="System"
+ publicKeyToken="b77a​5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Data"
+ publicKeyToken="b77a​5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Drawing"
+ publicKeyToken="b03f​5f7f11d50a3a"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Windows.Forms"
+ publicKeyToken="b77a​5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ <dependentAssembly>
+ <assemblyIdentity name="System.Xml"
+ publicKeyToken="b77a​5c561934e089"
+ culture="neutral"/>
+ <bindingRedirect oldVersion="1.0.5000.0"
+ newVersion="1.0.3300.0"/>
+ </dependentAssembly>
+
+ </assemblyBinding>
+
+ </runtime>
+
+</configuration>
\ No newline at end of file

Added: trunk/ubik/src/NUnit​/nunit-server.exe
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/nunit-server.exe?​view=auto&rev=12​
====================​====================​====================​==================
Binary file. No diff available.

Added: trunk/ubik/src/NUnit​/nunit.core.dll
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/nunit.core.dll?vi​ew=auto&rev=12
====================​====================​====================​==================
Binary file. No diff available.

Added: trunk/ubik/src/NUnit​/nunit.core.extensio​ns.dll
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/nunit.core.extens​ions.dll?view=auto​&rev=12
====================​====================​====================​==================
Binary file. No diff available.

Added: trunk/ubik/src/NUnit​/nunit.framework.dll​
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/nunit.framework.d​ll?view=auto&rev​=12
====================​====================​====================​==================
Binary file. No diff available.

Added: trunk/ubik/src/NUnit​/nunit.mocks.dll
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/nunit.mocks.dll?v​iew=auto&rev=12
====================​====================​====================​==================
Binary file. No diff available.

Added: trunk/ubik/src/NUnit​/nunit.uikit.dll
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/nunit.uikit.dll?v​iew=auto&rev=12
====================​====================​====================​==================
Binary file. No diff available.

Added: trunk/ubik/src/NUnit​/nunit.util.dll
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/NUn​it/nunit.util.dll?vi​ew=auto&rev=12
====================​====================​====================​==================
Binary file. No diff available.

Added: trunk/ubik/src/Ubik.​Engine.Client.Test/E​ngineDateTimeTest.cs​
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/Ubi​k.Engine.Client.Test​/EngineDateTimeTest.​cs?view=auto&rev​=12
====================​====================​====================​==================
--- (empty file)
+++ trunk/ubik/src/Ubik.​Engine.Client.Test/E​ngineDateTimeTest.cs​ Mon Mar 27 01:16:49 2006
@@ -0,0 +1,29 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using NUnit.Framework;
+
+namespace Ubik.Engine.Client.Test
+{
+ [TestFixture]
+ public class EngineDateTimeTest
+ {
+ [Test]
+ public void RoundToSecondsPrecision()
+ {
+ int year = 2006;
+ int month = 03;
+ int day = 26;
+ int hour = 22;
+ int minute = 45;
+ int second = 33;
+ int millisecond = 123;
+
+ DateTime expectedValue = new DateTime(year, month, day, hour, minute, second);
+ DateTime actualValue = EngineDateTime.Round​ToSecondsPrecision(
+ new DateTime(year, month, day, hour, minute, second, millisecond));
+
+ Assert.AreEqual(expectedValue, actualValue);
+ }
+ }
+}

Added: trunk/ubik/src/Ubik.​Engine.Client.Test/P​roperties/AssemblyIn​fo.cs
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/Ubi​k.Engine.Client.Test​/Properties/Assembly​Info.cs?view=auto​&rev=12
====================​====================​====================​==================
--- (empty file)
+++ trunk/ubik/src/Ubik.​Engine.Client.Test/P​roperties/AssemblyIn​fo.cs Mon Mar 27 01:16:49 2006
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.Compi​lerServices;
+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("Ubik.​Engine.Client.Test")​]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("<Not Specified>")]
+[assembly: AssemblyProduct("Ubi​k.Engine.Client.Test​")]
+[assembly: AssemblyCopyright("Copyright © <Not Specified> 2006")]
+[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("b007692d-8c9c-​47a3-8a70-44e65f41f1​27")]
+
+// 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: trunk/ubik/src/Ubik.​Engine.Client.Test/U​bik.Engine.Client.Te​st.csproj
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/Ubi​k.Engine.Client.Test​/Ubik.Engine.Client.​Test.csproj?view=aut​o&rev=12
====================​====================​====================​==================
--- (empty file)
+++ trunk/ubik/src/Ubik.​Engine.Client.Test/U​bik.Engine.Client.Te​st.csproj Mon Mar 27 01:16:49 2006
@@ -0,0 +1,57 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.micro​soft.com/developer/m​sbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Confi​guration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion​>8.0.50727</Prod​uctVersion>
+ <SchemaVersion​>2.0</SchemaVersi​on>
+ <ProjectGuid>{​9B5B2485-27B5-4674-B​037-7A76867B41CC}​</ProjectGuid>
+ <OutputType>Li​brary</OutputType​>
+ <AppDesignerFolde​r>Properties</​AppDesignerFolder​>
+ <RootNamespace​>Ubik.Engine.Client.​Test</RootNamespa​ce>
+ <AssemblyName>​Ubik.Engine.Client.T​est</AssemblyName​>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>​true</DebugSymbol​s>
+ <DebugType>ful​l</DebugType>
+ <Optimize>fals​e</Optimize>
+ <OutputPath>..​\..\bin\Debug\​</OutputPath>
+ <DefineConstants​>DEBUG;TRACE</D​efineConstants>
+ <ErrorReport>p​rompt</ErrorRepor​t>
+ <WarningLevel>​4</WarningLevel​>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdb​only</DebugType​>
+ <Optimize>true​</Optimize>
+ <OutputPath>..​\..\bin\Release\​</OutputPath>
+ <DefineConstants​>TRACE</DefineC​onstants>
+ <ErrorReport>p​rompt</ErrorRepor​t>
+ <WarningLevel>​4</WarningLevel​>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="nunit.framework, Version=2.2.7.0, Culture=neutral, PublicKeyToken=96d09​a1eb7f44a77, processorArchitecture=MSIL">
+ <SpecificVersion​>False</Specifi​cVersion>
+ <HintPath>..\​NUnit\nunit.framewo​rk.dll</HintPath​>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="EngineDateTimeTest.cs" />
+ <Compile Include="Properties​AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Ubik.En​gine\Ubik.Engine.cs​proj">
+ <Project>{3B2F​865D-931A-456A-B2CD-​2609FBB12BF3}</Pr​oject>
+ <Name>Ubik.Eng​ine</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildB​inPath)\Microsoft.C​Sharp.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: trunk/ubik/src/Ubik.​Engine.Server.Test/P​roperties/AssemblyIn​fo.cs
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/Ubi​k.Engine.Server.Test​/Properties/Assembly​Info.cs?view=auto​&rev=12
====================​====================​====================​==================
--- (empty file)
+++ trunk/ubik/src/Ubik.​Engine.Server.Test/P​roperties/AssemblyIn​fo.cs Mon Mar 27 01:16:49 2006
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.Compi​lerServices;
+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("Ubik.​Engine.Server.Test")​]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("<Not Specified>")]
+[assembly: AssemblyProduct("Ubi​k.Engine.Server.Test​")]
+[assembly: AssemblyCopyright("Copyright © <Not Specified> 2006")]
+[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("9163563d-4883-​4b1c-a0ea-6b9c101c58​92")]
+
+// 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: trunk/ubik/src/Ubik.​Engine.Server.Test/U​bik.Engine.Server.Te​st.csproj
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/Ubi​k.Engine.Server.Test​/Ubik.Engine.Server.​Test.csproj?view=aut​o&rev=12
====================​====================​====================​==================
--- (empty file)
+++ trunk/ubik/src/Ubik.​Engine.Server.Test/U​bik.Engine.Server.Te​st.csproj Mon Mar 27 01:16:49 2006
@@ -0,0 +1,56 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.micro​soft.com/developer/m​sbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Confi​guration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion​>8.0.50727</Prod​uctVersion>
+ <SchemaVersion​>2.0</SchemaVersi​on>
+ <ProjectGuid>{​01028A6A-58FD-407C-B​2BB-35232E8226A9}​</ProjectGuid>
+ <OutputType>Li​brary</OutputType​>
+ <AppDesignerFolde​r>Properties</​AppDesignerFolder​>
+ <RootNamespace​>Ubik.Engine.Server.​Test</RootNamespa​ce>
+ <AssemblyName>​Ubik.Engine.Server.T​est</AssemblyName​>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>​true</DebugSymbol​s>
+ <DebugType>ful​l</DebugType>
+ <Optimize>fals​e</Optimize>
+ <OutputPath>..​\..\bin\Debug\​</OutputPath>
+ <DefineConstants​>DEBUG;TRACE</D​efineConstants>
+ <ErrorReport>p​rompt</ErrorRepor​t>
+ <WarningLevel>​4</WarningLevel​>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdb​only</DebugType​>
+ <Optimize>true​</Optimize>
+ <OutputPath>..​\..\bin\Release\​</OutputPath>
+ <DefineConstants​>TRACE</DefineC​onstants>
+ <ErrorReport>p​rompt</ErrorRepor​t>
+ <WarningLevel>​4</WarningLevel​>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="nunit.framework, Version=2.2.7.0, Culture=neutral, PublicKeyToken=96d09​a1eb7f44a77, processorArchitecture=MSIL">
+ <SpecificVersion​>False</Specifi​cVersion>
+ <HintPath>..\​NUnit\nunit.framewo​rk.dll</HintPath​>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties​AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Ubik.En​gine\Ubik.Engine.cs​proj">
+ <Project>{3B2F​865D-931A-456A-B2CD-​2609FBB12BF3}</Pr​oject>
+ <Name>Ubik.Eng​ine</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildB​inPath)\Microsoft.C​Sharp.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: trunk/ubik/src/Ubik.​Engine.Test/Properti​es/AssemblyInfo.cs
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/Ubi​k.Engine.Test/Proper​ties/AssemblyInfo.cs​?view=auto&rev=1​2
====================​====================​====================​==================
--- (empty file)
+++ trunk/ubik/src/Ubik.​Engine.Test/Properti​es/AssemblyInfo.cs Mon Mar 27 01:16:49 2006
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.Compi​lerServices;
+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("Ubik.​Engine.Test")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("<Not Specified>")]
+[assembly: AssemblyProduct("Ubi​k.Engine.Test")]
+[assembly: AssemblyCopyright("Copyright © <Not Specified> 2006")]
+[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("3e0157fe-00c7-​48a8-bd1f-d3b5b8af9b​72")]
+
+// 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: trunk/ubik/src/Ubik.​Engine.Test/Ubik.Eng​ine.Test.csproj
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/Ubi​k.Engine.Test/Ubik.E​ngine.Test.csproj?vi​ew=auto&rev=12
====================​====================​====================​==================
--- (empty file)
+++ trunk/ubik/src/Ubik.​Engine.Test/Ubik.Eng​ine.Test.csproj Mon Mar 27 01:16:49 2006
@@ -0,0 +1,56 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.micro​soft.com/developer/m​sbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Confi​guration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion​>8.0.50727</Prod​uctVersion>
+ <SchemaVersion​>2.0</SchemaVersi​on>
+ <ProjectGuid>{​56AAD9D4-C829-4055-8​BFC-F61CF1069E7B}​</ProjectGuid>
+ <OutputType>Li​brary</OutputType​>
+ <AppDesignerFolde​r>Properties</​AppDesignerFolder​>
+ <RootNamespace​>Ubik.Engine.Test​</RootNamespace>
+ <AssemblyName>​Ubik.Engine.Test<​/AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>​true</DebugSymbol​s>
+ <DebugType>ful​l</DebugType>
+ <Optimize>fals​e</Optimize>
+ <OutputPath>..​\..\bin\Debug\​</OutputPath>
+ <DefineConstants​>DEBUG;TRACE</D​efineConstants>
+ <ErrorReport>p​rompt</ErrorRepor​t>
+ <WarningLevel>​4</WarningLevel​>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdb​only</DebugType​>
+ <Optimize>true​</Optimize>
+ <OutputPath>..​\..\bin\Release\​</OutputPath>
+ <DefineConstants​>TRACE</DefineC​onstants>
+ <ErrorReport>p​rompt</ErrorRepor​t>
+ <WarningLevel>​4</WarningLevel​>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="nunit.framework, Version=2.2.7.0, Culture=neutral, PublicKeyToken=96d09​a1eb7f44a77, processorArchitecture=MSIL">
+ <SpecificVersion​>False</Specifi​cVersion>
+ <HintPath>..\​NUnit\nunit.framewo​rk.dll</HintPath​>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties​AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Ubik.En​gine\Ubik.Engine.cs​proj">
+ <Project>{3B2F​865D-931A-456A-B2CD-​2609FBB12BF3}</Pr​oject>
+ <Name>Ubik.Eng​ine</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildB​inPath)\Microsoft.C​Sharp.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

Modified: trunk/ubik/src/Ubik.​Engine/Client/Engine​DateTime.cs
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/Ubi​k.Engine/Client/Engi​neDateTime.cs?view=d​iff&rev=12&p​1=trunk/ubik/src/Ubi​k.Engine/Client/Engi​neDateTime.cs&r1​=11&p2=trunk/ubi​k/src/Ubik.Engine/Cl​ient/EngineDateTime.​cs&r2=12
====================​====================​====================​==================
--- trunk/ubik/src/Ubik.​Engine/Client/Engine​DateTime.cs (original)
+++ trunk/ubik/src/Ubik.​Engine/Client/Engine​DateTime.cs Mon Mar 27 01:16:49 2006
@@ -31,9 +31,14 @@
         {
             get
             {
- DateTime now = DateTime.UtcNow;
- return new DateTime(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second);
+ return RoundToSecondsPrecis​ion(DateTime.UtcNow)​;
             }
         }
+
+ // Test fixture support
+ internal static DateTime RoundToSecondsPrecis​ion(DateTime dateTime)
+ {
+ return new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, dateTime.Hour, dateTime.Minute, dateTime.Second);
+ }
     }
 }

Modified: trunk/ubik/src/Ubik.​Engine/Properties/As​semblyInfo.cs
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/Ubi​k.Engine/Properties/​AssemblyInfo.cs?view​=diff&rev=12​&p1=trunk/ubik/src/U​bik.Engine/Propertie​s/AssemblyInfo.cs​&r1=11&p2=trunk​/ubik/src/Ubik.Engin​e/Properties/Assembl​yInfo.cs&r2=12
====================​====================​====================​==================
--- trunk/ubik/src/Ubik.​Engine/Properties/As​semblyInfo.cs (original)
+++ trunk/ubik/src/Ubik.​Engine/Properties/As​semblyInfo.cs Mon Mar 27 01:16:49 2006
@@ -33,3 +33,8 @@
 // by using the '*' as shown below:
 [assembly: AssemblyVersion("1.0.0.0")]
 [assembly: AssemblyFileVersion("1.0.0.0")]
+
+// This allows the assembly to be unit tested.
+[assembly: InternalsVisibleTo("​Ubik.Engine.Test")]
+[assembly: InternalsVisibleTo("​Ubik.Engine.Client.T​est")]
+[assembly: InternalsVisibleTo("​Ubik.Engine.Server.T​est")]

Modified: trunk/ubik/src/Ubik.sln
Url: http://ubik.tigris.o​rg/source/browse/ubi​k/trunk/ubik/src/Ubi​k.sln?view=diff&​rev=12&p1=trunk/​ubik/src/Ubik.sln​&r1=11&p2=trunk​/ubik/src/Ubik.sln​&r2=12
====================​====================​====================​==================
--- trunk/ubik/src/Ubik.sln (original)
+++ trunk/ubik/src/Ubik.sln Mon Mar 27 01:16:49 2006
@@ -13,6 +13,12 @@
 EndProject
 Project("{FAE04EC0-3​01F-11D3-BF4B-00C04F​79EFBC}") = "Ubik.Engine.Client.​UPath.Grammatica", "Ubik.Engine.Client.​UPath.Grammatica\Ub​ik.Engine.Client.UPa​th.Grammatica.csproj​", "{D5EBE800-036A-4984​-A028-8D738BF8B6CF}"​
 EndProject
+Project("{FAE04EC0-​301F-11D3-BF4B-00C04​F79EFBC}") = "Ubik.Engine.Client.Test", "Ubik.Engine.Client.​Test\Ubik.Engine.Cl​ient.Test.csproj", "{9B5B2485-27B5-4674​-B037-7A76867B41CC}"​
+EndProject
+Project("{FAE04EC0-​301F-11D3-BF4B-00C04​F79EFBC}") = "Ubik.Engine.Test", "Ubik.Engine.Test\U​bik.Engine.Test.cspr​oj", "{56AAD9D4-C829-4055​-8BFC-F61CF1069E7B}"​
+EndProject
+Project("{FAE04EC0-​301F-11D3-BF4B-00C04​F79EFBC}") = "Ubik.Engine.Server.Test", "Ubik.Engine.Server.​Test\Ubik.Engine.Se​rver.Test.csproj", "{01028A6A-58FD-407C​-B2BB-35232E8226A9}"​
+EndProject
 Global
     GlobalSection(Soluti​onConfigurationPlatf​orms) = preSolution
         Debug|Any CPU = Debug|Any CPU
@@ -43,6 +49,18 @@
         {D5EBE800-036A-4984-​A028-8D738BF8B6CF}.D​ebug|Any CPU.Build.0 = Debug|Any CPU
         {D5EBE800-036A-4984-​A028-8D738BF8B6CF}.R​elease|Any CPU.ActiveCfg = Release|Any CPU
         {D5EBE800-036A-4984-​A028-8D738BF8B6CF}.R​elease|Any CPU.Build.0 = Release|Any CPU
+ {9B5B2485-27B5-4674-​B037-7A76867B41CC}.D​ebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9B5B2485-27B5-4674-​B037-7A76867B41CC}.D​ebug|Any CPU.Build.0 = Debug|Any CPU
+ {9B5B2485-27B5-4674-​B037-7A76867B41CC}.R​elease|Any CPU.ActiveCfg = Release|Any CPU
+ {9B5B2485-27B5-4674-​B037-7A76867B41CC}.R​elease|Any CPU.Build.0 = Release|Any CPU
+ {56AAD9D4-C829-4055-​8BFC-F61CF1069E7B}.D​ebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {56AAD9D4-C829-4055-​8BFC-F61CF1069E7B}.D​ebug|Any CPU.Build.0 = Debug|Any CPU
+ {56AAD9D4-C829-4055-​8BFC-F61CF1069E7B}.R​elease|Any CPU.ActiveCfg = Release|Any CPU
+ {56AAD9D4-C829-4055-​8BFC-F61CF1069E7B}.R​elease|Any CPU.Build.0 = Release|Any CPU
+ {01028A6A-58FD-407C-​B2BB-35232E8226A9}.D​ebug|Any CPU.ActiveCfg = Debug|Any CPU
+ {01028A6A-58FD-407C-​B2BB-35232E8226A9}.D​ebug|Any CPU.Build.0 = Debug|Any CPU
+ {01028A6A-58FD-407C-​B2BB-35232E8226A9}.R​elease|Any CPU.ActiveCfg = Release|Any CPU
+ {01028A6A-58FD-407C-​B2BB-35232E8226A9}.R​elease|Any CPU.Build.0 = Release|Any CPU
     EndGlobalSection
     GlobalSection(Soluti​onProperties) = preSolution
         HideSolutionNode = FALSE

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r12 - in trunk/ubik/src: . NUnit Ubik.Engine.Client.Test Ubik.Engine.Client.Test/Properties Ubik.Engine.Server.Test Ubik.Engine.Server.Test/Properties Ubik.Engine.Test Ubik.Engine.Test/Pro... nblumhardt Nicholas Blumhardt 2006-03-27 01:16:49 PST
Messages per page: