adapdev-commits Mailing List for Adapdev.NET (Page 22)
Status: Beta
Brought to you by:
intesar66
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
(26) |
Apr
(59) |
May
(37) |
Jun
(53) |
Jul
(13) |
Aug
(7) |
Sep
(5) |
Oct
(74) |
Nov
(404) |
Dec
(14) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(10) |
Feb
(26) |
Mar
(64) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Sean M. <int...@us...> - 2005-10-23 07:32:42
|
Update of /cvsroot/adapdev/Adapdev/lib/nunit/214 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26768/lib/nunit/214 Added Files: nunit.framework.dll Log Message: Revised nunit \lib hierarchy so that its more maintainable --- NEW FILE: nunit.framework.dll --- (This appears to be a binary file; contents omitted.) |
From: Sean M. <int...@us...> - 2005-10-23 07:32:42
|
Update of /cvsroot/adapdev/Adapdev/lib/nunit/220 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26768/lib/nunit/220 Added Files: mock-assembly.dll nonamespace-assembly.dll notestfixtures-assembly.dll nunit.core.dll nunit.extensions.dll nunit.framework.dll nunit.mocks.dll nunit.tests.dll nunit.tests.dll.config nunit.uikit.dll nunit.util.dll Log Message: Revised nunit \lib hierarchy so that its more maintainable --- NEW FILE: notestfixtures-assembly.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mock-assembly.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nunit.core.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nunit.extensions.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nunit.tests.dll.config --- <?xml version="1.0" encoding="utf-8" ?> <configuration> <!-- This is the configuration file for the nunit.tests.dll assembly. You may need to create a similar configuration file for your own tests. 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. --> <configSections> <sectionGroup name="NUnit"> <section name="TestRunner" type="System.Configuration.NameValueSectionHandler"/> </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> <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> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="nunit.framework" publicKeyToken="96d09a1eb7f44a77" culture="neutral" /> <bindingRedirect oldVersion="2.1.4.0 - 2.2.1.65535" newVersion="2.2.2.0"/> </dependentAssembly> </assemblyBinding> </runtime> </configuration> --- NEW FILE: nunit.tests.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nunit.uikit.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nunit.util.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nunit.framework.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nunit.mocks.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nonamespace-assembly.dll --- (This appears to be a binary file; contents omitted.) |
From: Sean M. <int...@us...> - 2005-10-23 07:31:10
|
Update of /cvsroot/adapdev/Adapdev/lib/nunit/222 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26574/222 Log Message: Directory /cvsroot/adapdev/Adapdev/lib/nunit/222 added to the repository |
From: Sean M. <int...@us...> - 2005-10-23 07:31:10
|
Update of /cvsroot/adapdev/Adapdev/lib/nunit/214 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26574/214 Log Message: Directory /cvsroot/adapdev/Adapdev/lib/nunit/214 added to the repository |
From: Sean M. <int...@us...> - 2005-10-23 07:31:10
|
Update of /cvsroot/adapdev/Adapdev/lib/nunit/220 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26574/220 Log Message: Directory /cvsroot/adapdev/Adapdev/lib/nunit/220 added to the repository |
From: Sean M. <int...@us...> - 2005-10-23 07:29:12
|
Update of /cvsroot/adapdev/Adapdev/lib/nunit222 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26109/lib/nunit222 Removed Files: mock-assembly.dll nonamespace-assembly.dll notestfixtures-assembly.dll nunit.core.dll nunit.extensions.dll nunit.framework.dll nunit.framework.tests.dll nunit.framework.tests.dll.config nunit.mocks.dll nunit.testutilities.dll nunit.util.dll Log Message: Removed nunit folder hierarchy --- notestfixtures-assembly.dll DELETED --- --- nunit.framework.tests.dll.config DELETED --- --- nunit.framework.tests.dll DELETED --- --- nunit.testutilities.dll DELETED --- --- nunit.extensions.dll DELETED --- --- nunit.core.dll DELETED --- --- mock-assembly.dll DELETED --- --- nonamespace-assembly.dll DELETED --- --- nunit.util.dll DELETED --- --- nunit.framework.dll DELETED --- --- nunit.mocks.dll DELETED --- |
From: Sean M. <int...@us...> - 2005-10-23 07:29:12
|
Update of /cvsroot/adapdev/Adapdev/lib/nunit220 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26109/lib/nunit220 Removed Files: mock-assembly.dll nonamespace-assembly.dll notestfixtures-assembly.dll nunit.core.dll nunit.extensions.dll nunit.framework.dll nunit.mocks.dll nunit.tests.dll nunit.tests.dll.config nunit.uikit.dll nunit.util.dll Log Message: Removed nunit folder hierarchy --- notestfixtures-assembly.dll DELETED --- --- mock-assembly.dll DELETED --- --- nunit.core.dll DELETED --- --- nunit.extensions.dll DELETED --- --- nunit.tests.dll.config DELETED --- --- nunit.tests.dll DELETED --- --- nunit.uikit.dll DELETED --- --- nunit.util.dll DELETED --- --- nunit.framework.dll DELETED --- --- nunit.mocks.dll DELETED --- --- nonamespace-assembly.dll DELETED --- |
From: Sean M. <int...@us...> - 2005-10-23 07:29:12
|
Update of /cvsroot/adapdev/Adapdev/lib/nunit214 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26109/lib/nunit214 Removed Files: nunit.framework.dll Log Message: Removed nunit folder hierarchy --- nunit.framework.dll DELETED --- |
From: Sean M. <int...@us...> - 2005-10-23 07:27:29
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25792/src/Adapdev Modified Files: AppDomainManager.cs Log Message: Index: AppDomainManager.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev/AppDomainManager.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AppDomainManager.cs 23 Apr 2005 04:54:14 -0000 1.2 --- AppDomainManager.cs 23 Oct 2005 07:27:21 -0000 1.3 *************** *** 56,59 **** --- 56,60 ---- protected bool unloaded = false; private string basedir = String.Empty; + private string configFile = String.Empty; // create the logger *************** *** 100,103 **** --- 101,105 ---- this.domainName = domainName; this.domainType = DomainType.Remote; + this.configFile = configurationFile; if(log.IsDebugEnabled) log.Debug("Loading new AppDomainManager"); *************** *** 343,346 **** --- 345,353 ---- } + public string ConfigurationFile + { + get{return this.configFile;} + } + } |
From: Sean M. <int...@us...> - 2005-10-23 07:27:29
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core.NUnitTests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25792/src/Adapdev.UnitTest.Core.NUnitTests Added Files: Adapdev.UnitTest.Core.NUnitTests.csproj AssemblyInfo.cs Class1.cs Log Message: --- NEW FILE: Adapdev.UnitTest.Core.NUnitTests.csproj --- <VisualStudioProject> <CSHARP ProjectType = "Local" ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid = "{4E7A445A-E686-46F0-A7E5-4129FAB5C3E3}" > <Build> <Settings ApplicationIcon = "" AssemblyKeyContainerName = "" AssemblyName = "Adapdev.UnitTest.Core.NUnitTests" AssemblyOriginatorKeyFile = "" DefaultClientScript = "JScript" DefaultHTMLPageLayout = "Grid" DefaultTargetSchema = "IE50" DelaySign = "false" OutputType = "Library" PreBuildEvent = "" PostBuildEvent = "" RootNamespace = "Adapdev.UnitTest.Core.NUnitTests" RunPostBuildEvent = "OnBuildSuccess" StartupObject = "" > <Config Name = "Debug" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "DEBUG;TRACE" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = "bin\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Release" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "TRACE" DocumentationFile = "" DebugSymbols = "false" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "true" OutputPath = "bin\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> </Settings> <References> <Reference Name = "System" AssemblyName = "System" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" /> <Reference Name = "System.Data" AssemblyName = "System.Data" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" /> <Reference Name = "System.XML" AssemblyName = "System.XML" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" /> </References> </Build> <Files> <Include> <File RelPath = "AssemblyInfo.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "Class1.cs" SubType = "Code" BuildAction = "Compile" /> </Include> </Files> </CSHARP> </VisualStudioProject> --- NEW FILE: Class1.cs --- using System; namespace Adapdev.UnitTest.Core.NUnitTests { /// <summary> /// Summary description for Class1. /// </summary> public class Class1 { public Class1() { // // TODO: Add constructor logic here // } } } --- NEW FILE: AssemblyInfo.cs --- using System.Reflection; using System.Runtime.CompilerServices; // // 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("")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // // 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.*")] // // In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // // Use the attributes below to control which key is used for signing. // // Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. // (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. // (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is // located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. // [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("")] [assembly: AssemblyKeyName("")] |
From: Sean M. <int...@us...> - 2005-10-23 07:27:29
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core.Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25792/src/Adapdev.UnitTest.Core.Tests Modified Files: Adapdev.UnitTest.Core.Tests.csproj Adapdev.UnitTest.Core.Tests.csproj.user NUnitLocalSeparateTestEngineTest.cs NUnitLocalTestEngineTest.cs Added Files: AdapdevLocalTestEngineTest.cs Log Message: Index: Adapdev.UnitTest.Core.Tests.csproj.user =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core.Tests/Adapdev.UnitTest.Core.Tests.csproj.user,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Adapdev.UnitTest.Core.Tests.csproj.user 21 Oct 2005 04:59:20 -0000 1.1 --- Adapdev.UnitTest.Core.Tests.csproj.user 23 Oct 2005 07:27:20 -0000 1.2 *************** *** 2,6 **** <CSHARP LastOpenVersion = "7.10.3077" > <Build> ! <Settings ReferencePath = "" > <Config Name = "Debug" --- 2,6 ---- <CSHARP LastOpenVersion = "7.10.3077" > <Build> ! <Settings ReferencePath = "D:\projects\Adapdev\Adapdev\lib\" > <Config Name = "Debug" --- NEW FILE: AdapdevLocalTestEngineTest.cs --- using System; using NUnit.Framework; namespace Adapdev.UnitTest.Core.Tests { /// <summary> /// Summary description for AdapdevLocalTestEngineTest. /// </summary> /// [TestFixture] public class AdapdevLocalTestEngineTest { private static readonly string basedir = @AppDomain.CurrentDomain.BaseDirectory; [Test] public void LoadAdapdev() { using(ITestEngine engine = TestEngineFactory.CreateLocal(basedir + @"\Adapdev.UnitTest.Core.AdapdevTests.dll")) { Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); TestAssembly assembly = engine.GetTestAssembly(); Assert.IsTrue(assembly.GetTestCount() > 0, "No tests loaded."); } } [Test] public void RunAdapdev() { using(ITestEngine engine = TestEngineFactory.CreateLocal(basedir + @"\Adapdev.UnitTest.Core.AdapdevTests.dll")) { Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); TestAssembly assembly = engine.GetTestAssembly(); Assert.IsTrue(assembly.GetTestCount() > 0, "No tests loaded."); TestAssemblyResult result = engine.Run(engine.GetTestAssembly()); Assert.AreEqual(13, result.Passed); Assert.AreEqual(2, result.Failed); } } } } Index: Adapdev.UnitTest.Core.Tests.csproj =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core.Tests/Adapdev.UnitTest.Core.Tests.csproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Adapdev.UnitTest.Core.Tests.csproj 21 Oct 2005 04:59:20 -0000 1.2 --- Adapdev.UnitTest.Core.Tests.csproj 23 Oct 2005 07:27:20 -0000 1.3 *************** *** 18,22 **** OutputType = "Library" PreBuildEvent = "" ! PostBuildEvent = "" RootNamespace = "Adapdev.UnitTest.Core.Tests" RunPostBuildEvent = "OnBuildSuccess" --- 18,22 ---- OutputType = "Library" PreBuildEvent = "" ! PostBuildEvent = "xcopy ..\..\..\..\lib\nunit $(TargetDir)\nunit /s /e /y /i
copy ..\..\..\Adapdev.UnitTest.Core.AdapdevTests\bin\Debug\Adapdev.UnitTest.Core.AdapdevTests.dll $(TargetDir)\Adapdev.UnitTest.Core.AdapdevTests.dll" RootNamespace = "Adapdev.UnitTest.Core.Tests" RunPostBuildEvent = "OnBuildSuccess" *************** *** 81,90 **** /> <Reference - Name = "nunit.framework" - AssemblyName = "nunit.framework" - HintPath = "C:\Program Files\NUnit 2.2\bin\nunit.framework.dll" - AssemblyFolderKey = "hklm\dn\nunit.framework" - /> - <Reference Name = "Adapdev.UnitTest.Core" Project = "{B8592DE8-C10B-4ACB-A422-919C02C04B05}" --- 81,84 ---- *************** *** 96,99 **** --- 90,98 ---- Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" /> + <Reference + Name = "nunit.framework" + AssemblyName = "nunit.framework" + HintPath = "..\..\lib\nunit.framework.dll" + /> </References> </Build> *************** *** 101,104 **** --- 100,108 ---- <Include> <File + RelPath = "AdapdevLocalTestEngineTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "AssemblyInfo.cs" SubType = "Code" Index: NUnitLocalTestEngineTest.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core.Tests/NUnitLocalTestEngineTest.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NUnitLocalTestEngineTest.cs 21 Oct 2005 04:59:20 -0000 1.1 --- NUnitLocalTestEngineTest.cs 23 Oct 2005 07:27:20 -0000 1.2 *************** *** 14,18 **** public class NUnitLocalTestEngineTest { ! private static readonly string basedir = @"d:\projects\Adapdev\Adapdev\"; [Test] --- 14,18 ---- public class NUnitLocalTestEngineTest { ! private static readonly string basedir = @AppDomain.CurrentDomain.BaseDirectory; [Test] *************** *** 20,24 **** { Console.WriteLine(AppDomain.CurrentDomain.BaseDirectory); ! ITestEngine engine = TestEngineFactory.CreateLocal(basedir + @"lib\nunit222\nunit.framework.tests.dll"); Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); TestAssembly assembly = engine.GetTestAssembly(); --- 20,24 ---- { Console.WriteLine(AppDomain.CurrentDomain.BaseDirectory); ! ITestEngine engine = TestEngineFactory.CreateLocal(basedir + @"\nunit\222\nunit.framework.tests.dll"); Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); TestAssembly assembly = engine.GetTestAssembly(); *************** *** 29,34 **** public void RunNUnit2_2_2() { ! Console.WriteLine(AppDomain.CurrentDomain.BaseDirectory); ! ITestEngine engine = TestEngineFactory.CreateLocal(basedir + @"lib\nunit222\nunit.framework.tests.dll"); Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); TestAssembly assembly = engine.GetTestAssembly(); --- 29,33 ---- public void RunNUnit2_2_2() { ! ITestEngine engine = TestEngineFactory.CreateLocal(basedir + @"\nunit\222\nunit.framework.tests.dll"); Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); TestAssembly assembly = engine.GetTestAssembly(); Index: NUnitLocalSeparateTestEngineTest.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core.Tests/NUnitLocalSeparateTestEngineTest.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NUnitLocalSeparateTestEngineTest.cs 21 Oct 2005 04:59:20 -0000 1.1 --- NUnitLocalSeparateTestEngineTest.cs 23 Oct 2005 07:27:20 -0000 1.2 *************** *** 14,23 **** public class NUnitLocalSeparateTestEngineTest { ! private static readonly string basedir = @"d:\projects\Adapdev\Adapdev\"; [Test] public void LoadNUnit2_2_2() { ! using(ITestEngine engine = TestEngineFactory.CreateLocalSeparate(AppDomain.CurrentDomain.BaseDirectory, basedir + @"lib\nunit222\nunit.framework.tests.dll.config", basedir + @"lib\nunit222\nunit.framework.tests.dll")) { Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); --- 14,23 ---- public class NUnitLocalSeparateTestEngineTest { ! private static readonly string basedir = @AppDomain.CurrentDomain.BaseDirectory; [Test] public void LoadNUnit2_2_2() { ! using(ITestEngine engine = TestEngineFactory.CreateLocalSeparate(basedir, basedir + @"\nunit\222\nunit.framework.tests.dll.config", basedir + @"\nunit\222\nunit.framework.tests.dll")) { Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); *************** *** 27,34 **** } [Test] public void RunNUnit2_2_2() { ! using(ITestEngine engine = TestEngineFactory.CreateLocalSeparate(AppDomain.CurrentDomain.BaseDirectory, basedir + @"lib\nunit222\nunit.framework.tests.dll.config", basedir + @"lib\nunit222\nunit.framework.tests.dll")) { Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); --- 27,45 ---- } + public void LoadNUnit2_2_2WithoutConfigParam() + { + using(ITestEngine engine = TestEngineFactory.CreateLocalSeparate(basedir, basedir + @"\nunit\222\nunit.framework.tests.dll")) + { + Assert.AreEqual(basedir + @"\nunit\222\nunit.framework.tests.dll.config", engine.ConfigurationFile, "Configuration file was not automatically detected."); + Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); + TestAssembly assembly = engine.GetTestAssembly(); + Assert.IsTrue(assembly.GetTestCount() > 0, "No tests loaded."); + } + } + [Test] public void RunNUnit2_2_2() { ! using(ITestEngine engine = TestEngineFactory.CreateLocalSeparate(basedir, basedir + @"\nunit\222\nunit.framework.tests.dll.config", basedir + @"\nunit\222\nunit.framework.tests.dll")) { Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); *************** *** 37,41 **** TestAssemblyResult result = engine.Run(engine.GetTestAssembly()); ! Assert.AreEqual(299, result.Passed); } } --- 48,52 ---- TestAssemblyResult result = engine.Run(engine.GetTestAssembly()); ! Assert.AreEqual(302, result.Passed); } } *************** *** 44,48 **** public void LoadNUnit2_2_0() { ! using(ITestEngine engine = TestEngineFactory.CreateLocalSeparate(AppDomain.CurrentDomain.BaseDirectory, basedir + @"lib\nunit220\nunit.tests.dll.config", basedir + @"lib\nunit220\nunit.tests.dll")) { Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); --- 55,59 ---- public void LoadNUnit2_2_0() { ! using(ITestEngine engine = TestEngineFactory.CreateLocalSeparate(basedir, basedir + @"\nunit\220\nunit.tests.dll.config", basedir + @"\nunit\220\nunit.tests.dll")) { Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); *************** *** 52,59 **** } [Test] public void RunNUnit2_2_0() { ! using(ITestEngine engine = TestEngineFactory.CreateLocalSeparate(AppDomain.CurrentDomain.BaseDirectory, basedir + @"lib\nunit220\nunit.tests.dll.config", basedir + @"lib\nunit220\nunit.tests.dll")) { Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); --- 63,81 ---- } + public void LoadNUnit2_2_0WithoutConfigParam() + { + using(ITestEngine engine = TestEngineFactory.CreateLocalSeparate(basedir, basedir + @"\nunit\220\nunit.tests.dll")) + { + Assert.AreEqual(basedir + @"\nunit\220\nunit.tests.dll.config", engine.ConfigurationFile, "Configuration file was not automatically detected."); + Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); + TestAssembly assembly = engine.GetTestAssembly(); + Assert.IsTrue(assembly.GetTestCount() > 0, "No tests loaded."); + } + } + [Test] public void RunNUnit2_2_0() { ! using(ITestEngine engine = TestEngineFactory.CreateLocalSeparate(basedir, basedir + @"\nunit\220\nunit.tests.dll.config", basedir + @"\nunit\220\nunit.tests.dll")) { Assert.IsTrue(engine.GetLoadedAssemblies().Count > 0, "No assemblies loaded."); |
From: Sean M. <int...@us...> - 2005-10-23 07:27:29
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25792/src/Adapdev.UnitTest.Core Modified Files: Adapdev.UnitTest.Core.csproj ITestEngine.cs LocalSeparateTestEngine.cs LocalTestEngine.cs Test.cs TestFixtureIteration.cs TestResult.cs TestSuiteBuilder.cs Added Files: TestFramework.cs Log Message: Index: TestSuiteBuilder.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/TestSuiteBuilder.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** TestSuiteBuilder.cs 22 Oct 2005 17:15:38 -0000 1.8 --- TestSuiteBuilder.cs 23 Oct 2005 07:27:20 -0000 1.9 *************** *** 87,93 **** string orig = Environment.CurrentDirectory; Environment.CurrentDirectory = fi.DirectoryName; ! Trace.Write("Building assembly: " + assemblyName); ! Trace.Write("Environment Directory: " + orig); ! Trace.Write("Assembly Directory: " + fi.DirectoryName); // add the assembly to the AssemblyCache --- 87,93 ---- string orig = Environment.CurrentDirectory; Environment.CurrentDirectory = fi.DirectoryName; ! log.Debug("Building assembly: " + assemblyName); ! log.Debug("Environment Directory: " + orig); ! log.Debug("Assembly Directory: " + fi.DirectoryName); // add the assembly to the AssemblyCache *************** *** 318,321 **** --- 318,322 ---- t.Category = a.Category; t.Description = a.Description; + t.TestType = a.TestType; } else if (TypeHelper.HasCustomAttribute(m, typeof (NUnit.Framework.TestAttribute))) Index: TestResult.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/TestResult.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** TestResult.cs 28 Feb 2005 01:32:22 -0000 1.1.1.1 --- TestResult.cs 23 Oct 2005 07:27:20 -0000 1.2 *************** *** 46,49 **** --- 46,50 ---- protected string _category = ""; protected string _description = ""; + protected TestType _testType = TestType.Unit; public TestResult(Test t) *************** *** 51,54 **** --- 52,62 ---- this.Name = t.Name; this.Category = t.Category; + this.TestType = t.TestType; + } + + public TestType TestType + { + get{return this._testType;} + set{this._testType = value;} } --- NEW FILE: TestFramework.cs --- using System; namespace Adapdev.UnitTest.Core { /// <summary> /// Summary description for TestFramework. /// </summary> /// [Serializable] public enum TestFramework { NUnit, Adapdev, MbUnit } } Index: Adapdev.UnitTest.Core.csproj =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/Adapdev.UnitTest.Core.csproj,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Adapdev.UnitTest.Core.csproj 14 Apr 2005 03:32:05 -0000 1.3 --- Adapdev.UnitTest.Core.csproj 23 Oct 2005 07:27:20 -0000 1.4 *************** *** 262,265 **** --- 262,270 ---- /> <File + RelPath = "TestFramework.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "TestHelper.cs" SubType = "Code" Index: TestFixtureIteration.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/TestFixtureIteration.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** TestFixtureIteration.cs 28 Feb 2005 01:32:22 -0000 1.1.1.1 --- TestFixtureIteration.cs 23 Oct 2005 07:27:20 -0000 1.2 *************** *** 41,45 **** public class TestFixtureIteration : CompositeAbstractTestIteration { - } } \ No newline at end of file --- 41,44 ---- Index: Test.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/Test.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Test.cs 27 Apr 2005 04:36:02 -0000 1.2 --- Test.cs 23 Oct 2005 07:27:20 -0000 1.3 *************** *** 54,57 **** --- 54,58 ---- protected string _exceptionMessage = null; protected TestFixture _parent = null; + protected TestType _testType = TestType.Unit; public Test() *************** *** 65,68 **** --- 66,75 ---- } + public TestType TestType + { + get{return this._testType;} + set{this._testType = value;} + } + public string ExpectedExceptionType { Index: ITestEngine.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/ITestEngine.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ITestEngine.cs 28 Feb 2005 01:32:21 -0000 1.1.1.1 --- ITestEngine.cs 23 Oct 2005 07:27:20 -0000 1.2 *************** *** 17,20 **** --- 17,21 ---- void SetTestEventDispatcher(TestEventDispatcher dispatcher); void ShutDown(); + string ConfigurationFile{get;} } } Index: LocalTestEngine.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/LocalTestEngine.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** LocalTestEngine.cs 21 Oct 2005 04:59:20 -0000 1.3 --- LocalTestEngine.cs 23 Oct 2005 07:27:20 -0000 1.4 *************** *** 85,88 **** --- 85,94 ---- { } + + public string ConfigurationFile + { + get { return this.manager.Domain.SetupInformation.ConfigurationFile; } + } + } } Index: LocalSeparateTestEngine.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/LocalSeparateTestEngine.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** LocalSeparateTestEngine.cs 21 Oct 2005 04:59:20 -0000 1.2 --- LocalSeparateTestEngine.cs 23 Oct 2005 07:27:20 -0000 1.3 *************** *** 1,4 **** --- 1,5 ---- using System; using System.Collections; + using System.IO; using Adapdev; *************** *** 21,25 **** public LocalSeparateTestEngine(string basedir, string assembly) { ! manager = new AppDomainManager(basedir, String.Empty, new string[]{assembly}); manager.AddAssembly(assembly); this.assembly = assembly; --- 22,34 ---- public LocalSeparateTestEngine(string basedir, string assembly) { ! FileInfo file = new FileInfo(assembly); ! if(file.Directory.GetFiles(file.Name + ".config").Length > 0) ! { ! manager = new AppDomainManager(basedir, Path.Combine(file.Directory.FullName, file.Name + ".config"), new string[]{assembly}); ! } ! else ! { ! manager = new AppDomainManager(basedir, String.Empty, new string[]{assembly}); ! } manager.AddAssembly(assembly); this.assembly = assembly; *************** *** 93,96 **** --- 102,110 ---- } + public string ConfigurationFile + { + get { return this.manager.Domain.SetupInformation.ConfigurationFile; } + } + public void Dispose() { |
From: Sean M. <int...@us...> - 2005-10-23 07:27:29
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core.AdapdevTests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25792/src/Adapdev.UnitTest.Core.AdapdevTests Added Files: Adapdev.UnitTest.Core.AdapdevTests.csproj AdapdevAttributes.cs AssemblyInfo.cs Log Message: --- NEW FILE: Adapdev.UnitTest.Core.AdapdevTests.csproj --- <VisualStudioProject> <CSHARP ProjectType = "Local" ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid = "{3085922A-8F7B-4C5F-8C31-41BD7CCC0D05}" > <Build> <Settings ApplicationIcon = "" AssemblyKeyContainerName = "" AssemblyName = "Adapdev.UnitTest.Core.AdapdevTests" AssemblyOriginatorKeyFile = "" DefaultClientScript = "JScript" DefaultHTMLPageLayout = "Grid" DefaultTargetSchema = "IE50" DelaySign = "false" OutputType = "Library" PreBuildEvent = "" PostBuildEvent = "" RootNamespace = "Adapdev.UnitTest.Core.AdapdevTests" RunPostBuildEvent = "OnBuildSuccess" StartupObject = "" > <Config Name = "Debug" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "DEBUG;TRACE" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = "bin\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Release" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "TRACE" DocumentationFile = "" DebugSymbols = "false" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "true" OutputPath = "bin\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> </Settings> <References> <Reference Name = "System" AssemblyName = "System" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" /> <Reference Name = "System.Data" AssemblyName = "System.Data" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" /> <Reference Name = "System.XML" AssemblyName = "System.XML" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" /> <Reference Name = "Adapdev.UnitTest" Project = "{D450E7B3-CF48-421E-8B5E-9526E77E24C6}" Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" /> </References> </Build> <Files> <Include> <File RelPath = "AdapdevAttributes.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "AssemblyInfo.cs" SubType = "Code" BuildAction = "Compile" /> </Include> </Files> </CSHARP> </VisualStudioProject> --- NEW FILE: AdapdevAttributes.cs --- using System; using Adapdev.UnitTest; namespace Adapdev.UnitTest.Core.AdapdevTests { [TestFixture] public class AdapdevAttributes { // Runs only once, when the test assembly is dynamically loaded public AdapdevAttributes(){} // Runs once at the beginning of each TestFixture iteration [TestFixtureSetUp] public void TestFixtureSetUp() { Console.WriteLine("TestFixtureSetUp"); } // Runs once at the beginning of each Test iteration [TestSetUp] public void TestSetUp() { Console.WriteLine("TestSetUp"); } // Runs once at the beginning of each Test iteration [SetUp] public void SetUp() { Console.WriteLine("SetUp"); } // Runs once at the beginning of SimpleTest only [TestSetUp("SimpleTest")] public void SpecificTestSetUp() { Console.WriteLine("SpecificTestSetUp runs only for SimpleTest"); } // A Test [Test(Description="Basic test")] public void SimpleTest() { Console.WriteLine("SimpleTest"); } // Runs once at the end of SimpleTest only [TestTearDown("SimpleTest")] public void SpecificTestTearDown() { Console.WriteLine("SpecificTestTearDown runs only for SimpleTest"); } // A Test with a Category [Test(Category="Some Category", Description="Demonstrates a Test that's assigned to a category")] public void TestWithCategory() { Console.WriteLine("Test with category"); } // A Test with a Description [Test(Description="Demonstrates a Test that has a description")] public void TestWithDescription() { Console.WriteLine("Test with description"); } // A Test that is expecting a specific Exception // type to be thrown or any child class [Test(Description="A Test that expects an Exception to be thrown.")] [ExpectedException(typeof(Exception))] public void ExpectedException() { Console.WriteLine("ExpectedException"); throw new Exception("This Exception is expected"); } // A Test that is expecting a specific Exception // type to be thrown with a specific message [Test(Description="A Test that expects an Exception to be thrown with a specific message.")] [ExpectedException(typeof(Exception), "This Exception is expected")] public void ExpectedExceptionWithMessage() { Console.WriteLine("ExpectedException"); throw new Exception("This Exception is expected"); } // A Test that is expecting a specific Exception // type to be thrown with a specific message and fails [Test(Description="A Test that expects an Exception to be thrown with a specific message and receives the wrong one.")] [ExpectedException(typeof(Exception), "This Exception is expected")] public void FailExpectedExceptionWithMessage() { Console.WriteLine("ExpectedException"); throw new Exception("This Exception is not expected"); } // A Test that is expecting a specific DivideByZeroException // type to be thrown or any child class [Test] [ExpectedException(typeof(Exception))] public void ExpectedDivideByZeroException() { Console.WriteLine("ExpectedException"); throw new DivideByZeroException("This Exception is expected."); } // A Test that will fail because the ExpectedException is not thrown [Test(Description="A Test that expects an Exception to be thrown, but fails because one isn't.")] [ExpectedException(typeof(Exception))] public void FailExpectedException() { Console.WriteLine("ExpectedException"); } // A Test that will be ignored (not run) by default [Test(Description="A Test that is ignored, with no reason provided.")] [Ignore] public void Ignore() { Console.WriteLine("Ignore"); } // A Test that will be ignored (not run) by default // and provides a reason [Test(Description="A Test that is ignored, with a reason provided.")] [Ignore("Some reason")] public void IgnoreWithReason() { Console.WriteLine("Ignore with reason"); } // A Test that specifies the maximum amount of memory // that the Test can consume [Test(Description="A Test who's total memory consumption should not exceed 200K")] [MaxKMemory(200)] public void MaxKMemory() { Console.WriteLine("MaxKMemory"); } // A Test that will fail if it can't be repeated // the min number of times in a second [Test(Description="A Test that should be able to run at least 10X per second.")] [MinOperationsPerSecond(10)] public void MinOperationsPerSecond() { Console.WriteLine("MinOperationsPerSecond"); } // A Test that is repeated a set number of times [Test(Description="A Test that is repeated 5X")] [Repeat(5)] public void Repeat() { Console.WriteLine("Repeat"); } // A Test that is repeated a set number of times // with a 3 second delay in between [Test(Description="A Test that is repeated 5X, with a 3 second delay between each run.")] [Ignore] [Repeat(5,3000)] public void RepeatWithDelay() { Console.WriteLine("Repeat with delay"); } // Runs once at the end of each Test iteration [TearDown] public void TearDown() { Console.WriteLine("TearDown"); } // Runs once at the end of each Test iteration [TestTearDown] public void TestTearDown() { Console.WriteLine("TestTearDown"); } // Runs once at the end of the TestFixture iteration [TestFixtureTearDown] public void TestFixtureTearDown() { Console.WriteLine("TestFixtureTearDown"); } } } --- NEW FILE: AssemblyInfo.cs --- using System.Reflection; using System.Runtime.CompilerServices; // // 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("")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // // 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.*")] // // In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // // Use the attributes below to control which key is used for signing. // // Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. // (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. // (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is // located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. // [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("")] [assembly: AssemblyKeyName("")] |
From: Sean M. <int...@us...> - 2005-10-23 07:27:29
|
Update of /cvsroot/adapdev/Adapdev/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25792/src Modified Files: AdapdevFramework.sln Log Message: Index: AdapdevFramework.sln =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/AdapdevFramework.sln,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** AdapdevFramework.sln 22 Oct 2005 17:15:38 -0000 1.7 --- AdapdevFramework.sln 23 Oct 2005 07:27:20 -0000 1.8 *************** *** 80,83 **** --- 80,87 ---- EndProjectSection EndProject + Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Adapdev.UnitTest.Core.AdapdevTests", "Adapdev.UnitTest.Core.AdapdevTests\Adapdev.UnitTest.Core.AdapdevTests.csproj", "{3085922A-8F7B-4C5F-8C31-41BD7CCC0D05}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection + EndProject Global GlobalSection(SolutionConfiguration) = preSolution *************** *** 166,169 **** --- 170,177 ---- {59AFE252-CBC0-434A-8350-0A4722654CDA}.Release.ActiveCfg = Release|.NET {59AFE252-CBC0-434A-8350-0A4722654CDA}.Release.Build.0 = Release|.NET + {3085922A-8F7B-4C5F-8C31-41BD7CCC0D05}.Debug.ActiveCfg = Debug|.NET + {3085922A-8F7B-4C5F-8C31-41BD7CCC0D05}.Debug.Build.0 = Debug|.NET + {3085922A-8F7B-4C5F-8C31-41BD7CCC0D05}.Release.ActiveCfg = Release|.NET + {3085922A-8F7B-4C5F-8C31-41BD7CCC0D05}.Release.Build.0 = Release|.NET EndGlobalSection GlobalSection(SolutionItems) = postSolution |
From: Sean M. <int...@us...> - 2005-10-23 07:27:28
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Data.Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25792/src/Adapdev.Data.Tests Modified Files: Adapdev.Data.Tests.csproj Log Message: Index: Adapdev.Data.Tests.csproj =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Data.Tests/Adapdev.Data.Tests.csproj,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Adapdev.Data.Tests.csproj 21 Oct 2005 04:59:20 -0000 1.6 --- Adapdev.Data.Tests.csproj 23 Oct 2005 07:27:20 -0000 1.7 *************** *** 81,89 **** /> <Reference - Name = "nunit.framework" - AssemblyName = "nunit.framework" - HintPath = "..\..\lib\nunit.framework.dll" - /> - <Reference Name = "Adapdev.Data" Project = "{08C5794D-44ED-4E75-A1C1-48A28C3D0044}" --- 81,84 ---- *************** *** 100,103 **** --- 95,103 ---- HintPath = "..\..\lib\log4net.dll" /> + <Reference + Name = "nunit.framework" + AssemblyName = "nunit.framework" + HintPath = "..\..\lib\nunit.framework.dll" + /> </References> </Build> |
From: Sean M. <int...@us...> - 2005-10-23 07:27:28
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Data/Schema In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25792/src/Adapdev.Data/Schema Modified Files: ColumnSchema.cs Log Message: Index: ColumnSchema.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Data/Schema/ColumnSchema.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ColumnSchema.cs 25 Jul 2005 02:22:15 -0000 1.4 --- ColumnSchema.cs 23 Oct 2005 07:27:20 -0000 1.5 *************** *** 225,228 **** --- 225,236 ---- } + public string DbDataType + { + get { + string sub = this._netType.Substring(6); + return "DbType" + sub; + } + } + public string GetMySqlDbTypeName() { |
From: Sean M. <int...@us...> - 2005-10-23 07:26:07
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core.NUnitTests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25539/Adapdev.UnitTest.Core.NUnitTests Log Message: Directory /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core.NUnitTests added to the repository |
From: Sean M. <int...@us...> - 2005-10-23 07:26:07
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core.AdapdevTests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25539/Adapdev.UnitTest.Core.AdapdevTests Log Message: Directory /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core.AdapdevTests added to the repository |
From: Sean M. <int...@us...> - 2005-10-23 07:26:01
|
Update of /cvsroot/adapdev/Adapdev/lib/nunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25511/nunit Log Message: Directory /cvsroot/adapdev/Adapdev/lib/nunit added to the repository |
From: Sean M. <int...@us...> - 2005-10-22 17:15:51
|
Update of /cvsroot/adapdev/Adapdev/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29845/lib Added Files: TestDriven.Framework.dll Log Message: Added TestDriven.NET functionality --- NEW FILE: TestDriven.Framework.dll --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.TestRunner.Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29845/src/Adapdev.UnitTest.TestRunner.Tests Added Files: Adapdev.UnitTest.TestRunner.Tests.csproj AssemblyInfo.cs NUnitTest.cs ZanebugEnvironmentTest.cs ZanebugTest.cs Log Message: Added TestDriven.NET functionality --- NEW FILE: NUnitTest.cs --- using System; using System.Text; using NUnit.Framework; using System.Diagnostics; namespace Adapdev.UnitTest.TestRunner.Tests { [TestFixture] public class NUnitTest { [Test] public void Test1() { Trace.WriteLine("One"); } [Test] public void Test2() { Trace.WriteLine("Two"); } [Test] public void Test3() { Trace.WriteLine("Three"); } [Test] public void TestFail() { Assert.Fail("Boom!"); } } } --- NEW FILE: ZanebugEnvironmentTest.cs --- using System; using Adapdev.UnitTest; namespace Adapdev.UnitTest.TestRunner.Tests { using System.Configuration; /// <summary> /// Summary description for Environment. /// </summary> /// [TestFixture] public class ZanebugEnvironmentTest { [Test(Description="Displays the Environment.CurrentDirectory")] public void CurrentDirectory() { Console.WriteLine("Environment: " + System.Environment.CurrentDirectory); } [Test(Description="Displays the current AppDomain's BaseDirectory")] public void BaseDirectory() { Console.WriteLine("AppDomain.CurrentDomain.BaseDirectory: " + AppDomain.CurrentDomain.BaseDirectory); } [Test(Description="Displays the current AppDomain's configuration file (.config)")] public void ConfigurationFile() { Console.WriteLine("Configuration File: " + AppDomain.CurrentDomain.SetupInformation.ConfigurationFile); } } } --- NEW FILE: ZanebugTest.cs --- using System; using Adapdev.UnitTest; namespace Adapdev.UnitTest.TestRunner.Tests { [TestFixture] public class ZanebugTest { // Runs only once, when the test assembly is dynamically loaded public ZanebugTest(){} // Runs once at the beginning of each TestFixture iteration [TestFixtureSetUp] public void TestFixtureSetUp() { Console.WriteLine("TestFixtureSetUp"); } // Runs once at the beginning of each Test iteration [TestSetUp] public void TestSetUp() { Console.WriteLine("TestSetUp"); } // Runs once at the beginning of each Test iteration [SetUp] public void SetUp() { Console.WriteLine("SetUp"); } // Runs once at the beginning of SimpleTest only [TestSetUp("SimpleTest")] public void SpecificTestSetUp() { Console.WriteLine("SpecificTestSetUp runs only for SimpleTest"); } // A Test [Test(Description="Basic test")] public void SimpleTest() { Console.WriteLine("SimpleTest"); } // Runs once at the end of SimpleTest only [TestTearDown("SimpleTest")] public void SpecificTestTearDown() { Console.WriteLine("SpecificTestTearDown runs only for SimpleTest"); } // A Test with a Category [Test(Category="Some Category", Description="Demonstrates a Test that's assigned to a category")] public void TestWithCategory() { Console.WriteLine("Test with category"); } // A Test with a Description [Test(Description="Demonstrates a Test that has a description")] public void TestWithDescription() { Console.WriteLine("Test with description"); } // A Test that is expecting a specific Exception // type to be thrown or any child class [Test(Description="A Test that expects an Exception to be thrown.")] [ExpectedException(typeof(Exception))] public void ExpectedException() { Console.WriteLine("ExpectedException"); throw new Exception("This Exception is expected"); } // A Test that is expecting a specific Exception // type to be thrown with a specific message [Test(Description="A Test that expects an Exception to be thrown with a specific message.")] [ExpectedException(typeof(Exception), "This Exception is expected")] public void ExpectedExceptionWithMessage() { Console.WriteLine("ExpectedException"); throw new Exception("This Exception is expected"); } // A Test that is expecting a specific Exception // type to be thrown with a specific message and fails [Test(Description="A Test that expects an Exception to be thrown with a specific message and receives the wrong one.")] [ExpectedException(typeof(Exception), "This Exception is expected")] public void FailExpectedExceptionWithMessage() { Console.WriteLine("ExpectedException"); throw new Exception("This Exception is not expected"); } // A Test that is expecting a specific DivideByZeroException // type to be thrown or any child class [Test] [ExpectedException(typeof(Exception))] public void ExpectedDivideByZeroException() { Console.WriteLine("ExpectedException"); throw new DivideByZeroException("This Exception is expected."); } // A Test that will fail because the ExpectedException is not thrown [Test(Description="A Test that expects an Exception to be thrown, but fails because one isn't.")] [ExpectedException(typeof(Exception))] public void FailExpectedException() { Console.WriteLine("ExpectedException"); } // A Test that will be ignored (not run) by default [Test(Description="A Test that is ignored, with no reason provided.")] [Ignore] public void Ignore() { Console.WriteLine("Ignore"); } // A Test that will be ignored (not run) by default // and provides a reason [Test(Description="A Test that is ignored, with a reason provided.")] [Ignore("Some reason")] public void IgnoreWithReason() { Console.WriteLine("Ignore with reason"); } // A Test that specifies the maximum amount of memory // that the Test can consume [Test(Description="A Test who's total memory consumption should not exceed 200K")] [MaxKMemory(200)] public void MaxKMemory() { Console.WriteLine("MaxKMemory"); } // A Test that will fail if it can't be repeated // the min number of times in a second [Test(Description="A Test that should be able to run at least 10X per second.")] [MinOperationsPerSecond(10)] public void MinOperationsPerSecond() { Console.WriteLine("MinOperationsPerSecond"); } // A Test that is repeated a set number of times [Test(Description="A Test that is repeated 5X")] [Repeat(5)] public void Repeat() { Console.WriteLine("Repeat"); } // A Test that is repeated a set number of times // with a 3 second delay in between [Test(Description="A Test that is repeated 5X, with a 3 second delay between each run.")] [Ignore] [Repeat(5,3000)] public void RepeatWithDelay() { Console.WriteLine("Repeat with delay"); } // Runs once at the end of each Test iteration [TearDown] public void TearDown() { Console.WriteLine("TearDown"); } // Runs once at the end of each Test iteration [TestTearDown] public void TestTearDown() { Console.WriteLine("TestTearDown"); } // Runs once at the end of the TestFixture iteration [TestFixtureTearDown] public void TestFixtureTearDown() { Console.WriteLine("TestFixtureTearDown"); } } } --- NEW FILE: Adapdev.UnitTest.TestRunner.Tests.csproj --- <VisualStudioProject> <CSHARP ProjectType = "Local" ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid = "{59AFE252-CBC0-434A-8350-0A4722654CDA}" > <Build> <Settings ApplicationIcon = "" AssemblyKeyContainerName = "" AssemblyName = "Adapdev.TestRunner.Tests" AssemblyOriginatorKeyFile = "" DefaultClientScript = "JScript" DefaultHTMLPageLayout = "Grid" DefaultTargetSchema = "IE50" DelaySign = "false" OutputType = "Library" PreBuildEvent = "" PostBuildEvent = "" RootNamespace = "Adapdev.TestRunner.Tests" RunPostBuildEvent = "OnBuildSuccess" StartupObject = "" > <Config Name = "Debug" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "DEBUG;TRACE" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = "bin\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Release" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "TRACE" DocumentationFile = "" DebugSymbols = "false" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "true" OutputPath = "bin\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> </Settings> <References> <Reference Name = "System" AssemblyName = "System" HintPath = "G:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" /> <Reference Name = "System.Data" AssemblyName = "System.Data" HintPath = "G:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" /> <Reference Name = "System.XML" AssemblyName = "System.Xml" HintPath = "G:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" /> <Reference Name = "Adapdev.UnitTest.TestRunner" Project = "{2D0C35AA-CC64-4513-947D-F67C035D2B71}" Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" /> <Reference Name = "nunit.framework" AssemblyName = "nunit.framework" HintPath = "..\..\lib\nunit.framework.dll" /> <Reference Name = "TestDriven.Framework" AssemblyName = "TestDriven.Framework" HintPath = "..\..\lib\TestDriven.Framework.dll" /> <Reference Name = "Adapdev.UnitTest" Project = "{D450E7B3-CF48-421E-8B5E-9526E77E24C6}" Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" /> </References> </Build> <Files> <Include> <File RelPath = "AssemblyInfo.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "NUnitTest.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "ZanebugEnvironmentTest.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "ZanebugTest.cs" SubType = "Code" BuildAction = "Compile" /> </Include> </Files> </CSHARP> </VisualStudioProject> --- NEW FILE: AssemblyInfo.cs --- using System.Reflection; using System.Runtime.CompilerServices; using Adapdev.UnitTest.TestRunner; using TestDriven.Framework; // // 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("")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: CustomTestRunner(typeof(AdapdevTestRunner))] // // 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.*")] // // In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // // Use the attributes below to control which key is used for signing. // // Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. // (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. // (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is // located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. // [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("")] [assembly: AssemblyKeyName("")] |
From: Sean M. <int...@us...> - 2005-10-22 17:15:48
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.TestRunner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29845/src/Adapdev.UnitTest.TestRunner Added Files: Adapdev.UnitTest.TestRunner.csproj AdapdevTestRunner.cs Log Message: Added TestDriven.NET functionality --- NEW FILE: AdapdevTestRunner.cs --- using System; using System.Text; using TestDriven.Framework; using System.Reflection; using Adapdev.UnitTest.Core; using System.Diagnostics; namespace Adapdev.UnitTest.TestRunner { public class AdapdevTestRunner : ITestRunner { public TestRunResult RunAssembly(ITestListener testListener, Assembly assembly) { ITestSuiteFilter filter = new NoFilter(); return run(testListener, assembly, filter); } public TestRunResult RunMember(ITestListener testListener, Assembly assembly, MemberInfo member) { if (member is Type) { ITestSuiteFilter filter = new TypeFilter(member as Type); return run(testListener, assembly, filter); } else if (member is MethodInfo) { ITestSuiteFilter filter = new MethodFilter(member as MethodInfo); return run(testListener, assembly, filter); } else { return TestRunResult.NoTests; } } public TestRunResult RunNamespace(ITestListener testListener, Assembly assembly, string ns) { ITestSuiteFilter filter = new NamespaceFilter(ns); return run(testListener, assembly, filter); } TestRunResult run(ITestListener testListener, Assembly assembly, ITestSuiteFilter filter) { string assemblyFile = new Uri(assembly.CodeBase).LocalPath; ITestEngine engine = TestEngineFactory.CreateLocal(assemblyFile); TestSuite suite = engine.GetTestSuite(); filter.Filter(suite); if (suite.GetTestCount() == 0) { return TestRunResult.NoTests; } ProxyTestListener listener = new ProxyTestListener(testListener, suite.GetTestCount()); engine.SetTestEventDispatcher(listener.CreateDispatcher()); TestAssemblyResult[] results = engine.Run(suite); // HACK: Not always Success. return TestRunResult.Success; } class ProxyTestListener { ITestListener testListener; int testCount; public ProxyTestListener(ITestListener testListener, int testCount) { this.testListener = testListener; this.testCount = testCount; } public TestEventDispatcher CreateDispatcher() { TestEventDispatcher dispatcher = new TestEventDispatcher(); dispatcher.TestCompleted += new TestCompletedEventHandler(dispatcher_TestCompleted); dispatcher.TestIterationCompleted += new TestIterationCompletedEventHandler(dispatcher_TestIterationCompleted); dispatcher.TestSuiteCompleted += new TestSuiteCompletedEventHandler(dispatcher_TestSuiteCompleted); return dispatcher; } void dispatcher_TestCompleted(object sender, TestResultEventArgs e) { } private void dispatcher_TestIterationCompleted(object sender, TestIterationEventArgs e) { // HACK: Should this event fire if the test is ForcedIgnore? if (e.TestIteration.State != TestState.Ignore) { TestResultSummary summary = new TestResultSummary(); summary.TotalTests = this.testCount; summary.IsFailure = e.TestIteration.State == TestState.Fail; summary.IsSuccess = e.TestIteration.State == TestState.Pass; summary.IsExecuted = summary.IsFailure || summary.IsSuccess; // This is the correct code, but commented out // since the TextFormatter is currently in place // if(summary.IsFailure) // { // summary.StackTrace = e.TestIteration.FullStackTrace; // summary.Message = e.TestIteration.Result + // Environment.NewLine + // e.TestIteration.ConsoleOutput; // // ConsoleOutput is a hack since // // I don't see a property in TestResultSummary. // // Where should this go? // } summary.Name = e.TestIteration.Name; summary.TimeSpan = TimeSpan.FromSeconds(e.TestIteration.Duration); summary.TestRunner = GetType().FullName; this.testListener.TestFinished(summary); } } private void dispatcher_TestSuiteCompleted(object sender, TestAssemblyResult[] tar) { Console.WriteLine(new Adapdev.UnitTest.Core.TextFormatter(tar).GetText()); } } interface ITestSuiteFilter { void Filter(TestSuite suite); } class NoFilter : ITestSuiteFilter { public void Filter(TestSuite suite) { } } class NamespaceFilter : ITestSuiteFilter { string ns; public NamespaceFilter(string ns) { this.ns = ns; } public void Filter(TestSuite suite) { if (this.ns.Length > 0) { string prefix = this.ns + "."; foreach (TestAssembly testAssembly in suite.GetTestAssemblies()) { foreach (TestFixture testFixture in testAssembly.GetTestFixtures()) { if (!toFullName(testFixture).StartsWith(prefix)) { testFixture.ShouldRun = false; } } } } } } class TypeFilter : ITestSuiteFilter { Type type; public TypeFilter(Type type) { this.type = type; } public void Filter(TestSuite suite) { foreach (TestAssembly testAssembly in suite.GetTestAssemblies()) { foreach (TestFixture testFixture in testAssembly.GetTestFixtures()) { if (toFullName(testFixture) != this.type.FullName) { testFixture.ShouldRun = false; } } } } } class MethodFilter : ITestSuiteFilter { MethodInfo method; public MethodFilter(MethodInfo method) { this.method = method; } public void Filter(TestSuite suite) { Type type = this.method.ReflectedType; foreach (TestAssembly testAssembly in suite.GetTestAssemblies()) { foreach (TestFixture testFixture in testAssembly.GetTestFixtures()) { if (toFullName(testFixture) != type.FullName) { testFixture.ShouldRun = false; } else { foreach (Test test in testFixture.GetTests()) { if (test.Method != method.Name) { test.ShouldRun = false; } } } } } } } static string toFullName(TestFixture testFixture) { string fullName = ""; if (testFixture.Namespace != null && testFixture.Namespace.Length > 0) { fullName += testFixture.Namespace + "."; } fullName += testFixture.Class; return fullName; } } } --- NEW FILE: Adapdev.UnitTest.TestRunner.csproj --- <VisualStudioProject> <CSHARP ProjectType = "Local" ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid = "{2D0C35AA-CC64-4513-947D-F67C035D2B71}" > <Build> <Settings ApplicationIcon = "" AssemblyKeyContainerName = "" AssemblyName = "Adapdev.TestRunner" AssemblyOriginatorKeyFile = "" DefaultClientScript = "JScript" DefaultHTMLPageLayout = "Grid" DefaultTargetSchema = "IE50" DelaySign = "false" OutputType = "Library" PreBuildEvent = "" PostBuildEvent = "" RootNamespace = "Adapdev.TestRunner" RunPostBuildEvent = "OnBuildSuccess" StartupObject = "" > <Config Name = "Debug" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "DEBUG;TRACE" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = "bin\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Release" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "TRACE" DocumentationFile = "" DebugSymbols = "false" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "true" OutputPath = "bin\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> </Settings> <References> <Reference Name = "System" AssemblyName = "System" HintPath = "G:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" /> <Reference Name = "System.Data" AssemblyName = "System.Data" HintPath = "G:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" /> <Reference Name = "System.XML" AssemblyName = "System.Xml" HintPath = "G:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" /> <Reference Name = "Adapdev.UnitTest.Core" Project = "{B8592DE8-C10B-4ACB-A422-919C02C04B05}" Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" /> <Reference Name = "Adapdev" Project = "{CC30A321-2569-4B1F-8E1A-781B5509B56D}" Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" /> <Reference Name = "log4net" AssemblyName = "log4net" HintPath = "..\..\lib\log4net.dll" /> <Reference Name = "TestDriven.Framework" AssemblyName = "TestDriven.Framework" HintPath = "..\..\lib\TestDriven.Framework.dll" /> </References> </Build> <Files> <Include> <File RelPath = "AdapdevAssemblyInfo.cs" Link = "..\AdapdevAssemblyInfo.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "AdapdevTestRunner.cs" SubType = "Code" BuildAction = "Compile" /> </Include> </Files> </CSHARP> </VisualStudioProject> |
From: Sean M. <int...@us...> - 2005-10-22 17:15:48
|
Update of /cvsroot/adapdev/Adapdev/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29845/src Modified Files: AdapdevFramework.sln Log Message: Added TestDriven.NET functionality Index: AdapdevFramework.sln =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/AdapdevFramework.sln,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** AdapdevFramework.sln 5 Jun 2005 08:50:33 -0000 1.6 --- AdapdevFramework.sln 22 Oct 2005 17:15:38 -0000 1.7 *************** *** 72,75 **** --- 72,83 ---- EndProjectSection EndProject + Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Adapdev.UnitTest.TestRunner", "Adapdev.UnitTest.TestRunner\Adapdev.UnitTest.TestRunner.csproj", "{2D0C35AA-CC64-4513-947D-F67C035D2B71}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection + EndProject + Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Adapdev.UnitTest.TestRunner.Tests", "Adapdev.UnitTest.TestRunner.Tests\Adapdev.UnitTest.TestRunner.Tests.csproj", "{59AFE252-CBC0-434A-8350-0A4722654CDA}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection + EndProject Global GlobalSection(SolutionConfiguration) = preSolution *************** *** 150,153 **** --- 158,169 ---- {D0F97D76-E7A6-4059-B902-F792626A29A8}.Release.ActiveCfg = Release|.NET {D0F97D76-E7A6-4059-B902-F792626A29A8}.Release.Build.0 = Release|.NET + {2D0C35AA-CC64-4513-947D-F67C035D2B71}.Debug.ActiveCfg = Debug|.NET + {2D0C35AA-CC64-4513-947D-F67C035D2B71}.Debug.Build.0 = Debug|.NET + {2D0C35AA-CC64-4513-947D-F67C035D2B71}.Release.ActiveCfg = Release|.NET + {2D0C35AA-CC64-4513-947D-F67C035D2B71}.Release.Build.0 = Release|.NET + {59AFE252-CBC0-434A-8350-0A4722654CDA}.Debug.ActiveCfg = Debug|.NET + {59AFE252-CBC0-434A-8350-0A4722654CDA}.Debug.Build.0 = Debug|.NET + {59AFE252-CBC0-434A-8350-0A4722654CDA}.Release.ActiveCfg = Release|.NET + {59AFE252-CBC0-434A-8350-0A4722654CDA}.Release.Build.0 = Release|.NET EndGlobalSection GlobalSection(SolutionItems) = postSolution |
From: Sean M. <int...@us...> - 2005-10-22 17:15:47
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29845/src/Adapdev.UnitTest.Core Modified Files: AbstractTestIteration.cs TestRunner.cs TestSuiteBuilder.cs TextFormatter.cs Log Message: Added TestDriven.NET functionality Index: TestSuiteBuilder.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/TestSuiteBuilder.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TestSuiteBuilder.cs 21 Oct 2005 04:59:20 -0000 1.7 --- TestSuiteBuilder.cs 22 Oct 2005 17:15:38 -0000 1.8 *************** *** 372,378 **** string lostAssemblyFilename = Path.Combine(Environment.CurrentDirectory, lostNamespace + ".dll"); ! Trace.Write("Not found. Trying to resolve " + lostAssemblyFilename); Assembly a = Assembly.LoadFile(lostAssemblyFilename); ! if(a != null) Trace.WriteLine("Found. Loaded " + a.GetName().Name + " - " + a.GetName().Version + " - " + a.Location); return a; --- 372,378 ---- string lostAssemblyFilename = Path.Combine(Environment.CurrentDirectory, lostNamespace + ".dll"); ! log.Debug("Not found. Trying to resolve " + lostAssemblyFilename); Assembly a = Assembly.LoadFile(lostAssemblyFilename); ! if(a != null) log.Debug("Found. Loaded " + a.GetName().Name + " - " + a.GetName().Version + " - " + a.Location); return a; *************** *** 382,386 **** { AssemblyName assemblyName = assembly.GetName(); ! Trace.WriteLine("Probing for: " + assemblyName); if (! dependencyList.Contains(assemblyName.FullName)) { --- 382,386 ---- { AssemblyName assemblyName = assembly.GetName(); ! log.Debug("Probing for: " + assemblyName); if (! dependencyList.Contains(assemblyName.FullName)) { *************** *** 396,400 **** public void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args) { ! Trace.WriteLine("Loading: " + args.LoadedAssembly.FullName); } } --- 396,400 ---- public void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args) { ! log.Debug("Loading: " + args.LoadedAssembly.FullName); } } Index: TestRunner.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/TestRunner.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TestRunner.cs 12 Jun 2005 14:24:29 -0000 1.7 --- TestRunner.cs 22 Oct 2005 17:15:38 -0000 1.8 *************** *** 225,228 **** --- 225,229 ---- } TestIteration ti = new TestIteration(); + ti.Name = test.Name; ti.Iteration = i; ti.Thread = AppDomain.GetCurrentThreadId().ToString(); *************** *** 353,356 **** --- 354,358 ---- { TestIteration ti = new TestIteration(); + ti.Name = test.Name; ti.State = TestState.Ignore; ti.Result = test.IgnoreReason; Index: AbstractTestIteration.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/AbstractTestIteration.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** AbstractTestIteration.cs 28 Feb 2005 01:32:20 -0000 1.1.1.1 --- AbstractTestIteration.cs 22 Oct 2005 17:15:38 -0000 1.2 *************** *** 53,56 **** --- 53,57 ---- protected string _traceOutput = ""; protected int _iteration = 0; + protected string _name = String.Empty; public string ConsoleError *************** *** 131,134 **** --- 132,141 ---- } + public string Name + { + get { return _name; } + set { _name = value; } + } + } } \ No newline at end of file Index: TextFormatter.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/TextFormatter.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TextFormatter.cs 9 Jun 2005 04:20:23 -0000 1.5 --- TextFormatter.cs 22 Oct 2005 17:15:38 -0000 1.6 *************** *** 86,90 **** { if(tar.Iterations.Count > 1) sb.Append(this.GetNesting(nesting) + "Iteration: " + ati.Iteration + "\r\n"); ! sb.AppendFormat(this.GetNesting(nesting + 1) + this.GetMarker(tar) + "{0} - {1}\t\t\tTime: {2}s\r\n", tar.Name, tar.State, tar.GetAverageDuration()); if((tar is TestResult) && ((tar as TestResult).Description.Length > 0)) sb.AppendFormat(this.GetNesting(nesting + 2) + "Description: {0}\r\n", (tar as TestResult).Description); --- 86,91 ---- { if(tar.Iterations.Count > 1) sb.Append(this.GetNesting(nesting) + "Iteration: " + ati.Iteration + "\r\n"); ! sb.AppendFormat(this.GetNesting(nesting + 1) + this.GetMarker(tar) + "{0} - {1}\r\n", tar.Name, tar.State); ! //sb.AppendFormat(this.GetNesting(nesting + 1) + this.GetMarker(tar) + "Time: {0}s\r\n", tar.GetTotalDuration()); if((tar is TestResult) && ((tar as TestResult).Description.Length > 0)) sb.AppendFormat(this.GetNesting(nesting + 2) + "Description: {0}\r\n", (tar as TestResult).Description); |
From: Sean M. <int...@us...> - 2005-10-22 17:15:05
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.TestRunner.Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29675/Adapdev.UnitTest.TestRunner.Tests Log Message: Directory /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.TestRunner.Tests added to the repository |