adapdev-commits Mailing List for Adapdev.NET (Page 23)
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-22 17:15:04
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.TestRunner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29675/Adapdev.UnitTest.TestRunner Log Message: Directory /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.TestRunner added to the repository |
From: Sean M. <int...@us...> - 2005-10-22 00:40:34
|
Update of /cvsroot/adapdev/Adapdev/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10052/lib Removed Files: MySQL.Data.pdb Log Message: --- MySQL.Data.pdb DELETED --- |
From: Sean M. <int...@us...> - 2005-10-22 00:38:03
|
Update of /cvsroot/adapdev/Adapdev/lib/nunit220 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9572/lib/nunit220 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: --- 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-22 00:38:02
|
Update of /cvsroot/adapdev/Adapdev/lib/nunit214 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9572/lib/nunit214 Added Files: nunit.framework.dll Log Message: --- NEW FILE: nunit.framework.dll --- (This appears to be a binary file; contents omitted.) |
From: Sean M. <int...@us...> - 2005-10-22 00:36:28
|
Update of /cvsroot/adapdev/Adapdev/lib/nunit214 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9359/nunit214 Log Message: Directory /cvsroot/adapdev/Adapdev/lib/nunit214 added to the repository |
From: Sean M. <int...@us...> - 2005-10-22 00:36:27
|
Update of /cvsroot/adapdev/Adapdev/lib/nunit220 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9359/nunit220 Log Message: Directory /cvsroot/adapdev/Adapdev/lib/nunit220 added to the repository |
From: Sean M. <int...@us...> - 2005-10-21 23:42:53
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29946/src/Adapdev.UnitTest Modified Files: Adapdev.UnitTest.csproj TestAttribute.cs Added Files: TestType.cs Log Message: Index: Adapdev.UnitTest.csproj =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest/Adapdev.UnitTest.csproj,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Adapdev.UnitTest.csproj 14 Apr 2005 03:32:06 -0000 1.3 --- Adapdev.UnitTest.csproj 21 Oct 2005 23:42:45 -0000 1.4 *************** *** 185,188 **** --- 185,193 ---- BuildAction = "Compile" /> + <File + RelPath = "TestType.cs" + SubType = "Code" + BuildAction = "Compile" + /> </Include> </Files> Index: TestAttribute.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest/TestAttribute.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** TestAttribute.cs 28 Feb 2005 01:32:20 -0000 1.1.1.1 --- TestAttribute.cs 21 Oct 2005 23:42:45 -0000 1.2 *************** *** 44,47 **** --- 44,48 ---- private string _category = ""; private string _description = ""; + private TestType _testType = TestType.Unit; /// <summary> *************** *** 63,66 **** --- 64,76 ---- set{ this._description = value;} } + + /// <summary> + /// Gets or sets the test type + /// </summary> + public TestType TestType + { + get{return this._testType;} + set{this._testType = value;} + } } } \ No newline at end of file --- NEW FILE: TestType.cs --- using System; namespace Adapdev.UnitTest { /// <summary> /// Summary description for TestType. /// </summary> /// [Serializable] [Flags] public enum TestType : int { /// <summary> /// /// </summary> Unit = 1, /// <summary> /// /// </summary> Integration = 2, /// <summary> /// /// </summary> System = 4, /// <summary> /// /// </summary> Database = 8, /// <summary> /// Function testing of the target-of-test should focus on any requirements for test that can be traced directly to use cases or business functions and business rules. The goals of these tests are to verify proper data acceptance, processing, and retrieval, and the appropriate implementation of the business rules. This type of testing is based upon black box techniques; that is verifying the application and its internal processes by interacting with the application via the Graphical User Interface (GUI) and analyzing the output or results. /// </summary> Functional = 16, /// <summary> /// Business Cycle Testing should emulate the activities performed over time. A period should be identified, such as one year, and transactions and activities that would occur during a year's period should be executed. This includes all daily, weekly, and monthly cycles and, events that are date-sensitive, such as ticklers. /// </summary> BusinessCycle = 32, /// <summary> /// User Interface (UI) testing verifies a user's interaction with the software. The goal of UI testing is to ensure that the User Interface provides the user with the appropriate access and navigation through the functions of the target-of-test. In addition, UI testing ensures that the objects within the UI function as expected and conform to corporate or industry standards. /// </summary> DesktopUserInterface = 64, /// <summary> /// User Interface (UI) testing verifies a user's interaction with the software. The goal of UI testing is to ensure that the User Interface provides the user with the appropriate access and navigation through the functions of the target-of-test. In addition, UI testing ensures that the objects within the UI function as expected and conform to corporate or industry standards. /// </summary> WebUserInterface = 128, /// <summary> /// Performance profiling is a performance test in which response times, transaction rates, and other time-sensitive requirements are measured and evaluated. The goal of Performance Profiling is to verify performance requirements have been achieved. Performance profiling is implemented and executed to profile and tune a target-of-test's performance behaviors as a function of conditions such as workload or hardware configurations /// </summary> Performance = 256, /// <summary> /// /// </summary> Web = 512, /// <summary> /// Load testing is a performance test which subjects the target-of-test to varying workloads to measure and evaluate the performance behaviors and ability of the target-of-test to continue to function properly under these different workloads. The goal of load testing is to determine and ensure that the system functions properly beyond the expected maximum workload. Additionally, load testing evaluates the performance characteristics, such as response times, transaction rates, and other time sensitive issues). /// </summary> Load = 1024, /// <summary> /// Stress testing is a type of performance test implemented and executed to find errors due to low resources or competition for resources. Low memory or disk space may reveal defects in the target-of-test that aren't apparent under normal conditions. Other defects might result from competition for shared resources like database locks or network bandwidth. Stress testing can also be used to identify the peak workload the target-of-test can handle. /// </summary> Stress = 2048, /// <summary> /// Volume Testing subjects the target-of-test to large amounts of data to determine if limits are reached that cause the software to fail. Volume Testing also identifies the continuous maximum load or volume the target-of-test can handle for a given period. For example, if the target-of-test is processing a set of database records to generate a report, a Volume Test would use a large test database and check that the software behaved normally and produced the correct report. /// </summary> Volume = 4096, /// <summary> /// Configuration testing verifies the operation of the target-of-test on different software and hardware configurations. In most production environments, the particular hardware specifications for the client workstations, network connections and database servers vary. Client workstations may have different software loaded¾for example, applications, drivers, and so on¾and at any one time, many different combinations may be active using different resources. /// </summary> Configuration = 8192, /// <summary> /// Security and Access Control Testing /// </summary> Security = 16284, /// <summary> /// Failover and Recovery Testing ensures that the target-of-test can successfully failover and recover from a variety of hardware, software or network malfunctions with undue loss of data or data integrity. /// </summary> FailoverAndRecovery = 32568 } } |
From: Sean M. <int...@us...> - 2005-10-21 23:42:53
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29946/src/Adapdev.UnitTest.Tests Added Files: TestTypeTest.cs Log Message: --- NEW FILE: TestTypeTest.cs --- using System; using NUnit.Framework; using Adapdev.UnitTest; namespace Adapdev.UnitTest.Tests { /// <summary> /// Summary description for TestType. /// </summary> /// [TestFixture] public class TestTypeTest { [Test] public void MultipleTestTypes() { TestType tt = TestType.Unit | TestType.Web; Assert.IsTrue((tt & TestType.Unit) > 0, "Should be a unit test."); Assert.IsTrue((tt & TestType.Web) > 0, "Should be a web test."); Assert.IsFalse((tt & TestType.WebUserInterface) > 0, "Should not be a web UI test."); } } } |
From: Sean M. <int...@us...> - 2005-10-21 22:44:36
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Data/obj/Debug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15995/src/Adapdev.Data/obj/Debug Removed Files: Adapdev.Data.dll Adapdev.Data.pdb Log Message: --- Adapdev.Data.pdb DELETED --- --- Adapdev.Data.dll DELETED --- |
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Data/bin/Debug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15568/src/Adapdev.Data/bin/Debug Removed Files: Adapdev.Data.dll Adapdev.Data.pdb Adapdev.dll Adapdev.pdb MySql.Data.dll MySql.Data.pdb log4net.dll Log Message: --- MySql.Data.dll DELETED --- --- Adapdev.dll DELETED --- --- MySql.Data.pdb DELETED --- --- Adapdev.pdb DELETED --- --- Adapdev.Data.pdb DELETED --- --- log4net.dll DELETED --- --- Adapdev.Data.dll DELETED --- |
From: Sean M. <int...@us...> - 2005-10-21 05:01:18
|
Update of /cvsroot/adapdev/Adapdev/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28208/src Removed Files: AdapdevFramework.resharperoptions AdapdevFramework.suo Log Message: --- AdapdevFramework.resharperoptions DELETED --- --- AdapdevFramework.suo DELETED --- |
From: Sean M. <int...@us...> - 2005-10-21 05:00:09
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Data/Schema In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/src/Adapdev.Data/Schema Modified Files: OleDbSchemaBuilder.cs Log Message: Several bug fixes for AbstractDAO Added unit tests for NUnit support Index: OleDbSchemaBuilder.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Data/Schema/OleDbSchemaBuilder.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** OleDbSchemaBuilder.cs 18 Sep 2005 03:04:45 -0000 1.1 --- OleDbSchemaBuilder.cs 21 Oct 2005 04:59:20 -0000 1.2 *************** *** 26,29 **** --- 26,33 ---- DataTable schemaTables = this.GetOleDbSchema(_callback, connectionString, OleDbSchemaGuid.Tables, "",schemaFilter,"",""); DatabaseSchema di = new DatabaseSchema(); + di.DatabaseProviderType = providerType; + di.DatabaseType = databaseType; + this.dbProviderType = providerType; + if (schemaTables != null) { |
From: Sean M. <int...@us...> - 2005-10-21 05:00:08
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Data/Sql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/src/Adapdev.Data/Sql Modified Files: ISelectQuery.cs QueryHelper.cs SelectQuery.cs Log Message: Several bug fixes for AbstractDAO Added unit tests for NUnit support Index: SelectQuery.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Data/Sql/SelectQuery.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SelectQuery.cs 21 Jul 2005 23:29:21 -0000 1.3 --- SelectQuery.cs 21 Oct 2005 04:59:20 -0000 1.4 *************** *** 103,106 **** --- 103,119 ---- } + public void AddOrderBy(string tableName, string columnName) + { + order.Enqueue(QueryHelper.GetPreDelimeter(this.type) + tableName + QueryHelper.GetPostDelimeter(this.type) + "." + QueryHelper.GetPreDelimeter(this.type) + columnName + QueryHelper.GetPostDelimeter(this.type)); + } + + public void AddOrderBy(string tableName, params string[] columns) + { + foreach (string s in columns) + { + this.AddOrderBy(tableName, s); + } + } + public void AddOrderBy(params string[] columns) { Index: QueryHelper.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Data/Sql/QueryHelper.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** QueryHelper.cs 25 Jul 2005 02:22:15 -0000 1.5 --- QueryHelper.cs 21 Oct 2005 04:59:20 -0000 1.6 *************** *** 161,164 **** --- 161,169 ---- } + public static string GetSqlServerLastInsertedScopeCommand() + { + return "SELECT SCOPE_IDENTITY();"; + } + public static string GetAccessLastInsertedCommand(string table, string column) { Index: ISelectQuery.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Data/Sql/ISelectQuery.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ISelectQuery.cs 25 May 2005 05:17:47 -0000 1.2 --- ISelectQuery.cs 21 Oct 2005 04:59:20 -0000 1.3 *************** *** 50,53 **** --- 50,59 ---- void AddOrderBy(string columnName); /// <summary> + /// Adds a ORDER BY [table].[column] statement in the datastore specific format + /// </summary> + /// <param name="tableName"></param> + /// <param name="columnName"></param> + void AddOrderBy(string tableName, string columnName); + /// <summary> /// Adds a ORDER BY [column1], [column2]... statement in the datastore specific format /// </summary> |
From: Sean M. <int...@us...> - 2005-10-21 05:00:08
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Data.Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/src/Adapdev.Data.Tests Modified Files: Adapdev.Data.Tests.csproj SchemaBuilderTest.cs Added Files: Adapdev.Data.Tests.csproj.user CategoriesDAOTest.cs Log Message: Several bug fixes for AbstractDAO Added unit tests for NUnit support Index: Adapdev.Data.Tests.csproj =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Data.Tests/Adapdev.Data.Tests.csproj,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Adapdev.Data.Tests.csproj 13 May 2005 03:51:26 -0000 1.5 --- Adapdev.Data.Tests.csproj 21 Oct 2005 04:59:20 -0000 1.6 *************** *** 111,114 **** --- 111,119 ---- /> <File + RelPath = "CategoriesDAOTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "ProviderInfoManagerTest.cs" SubType = "Code" *************** *** 120,123 **** --- 125,173 ---- BuildAction = "Compile" /> + <File + RelPath = "CategoriesExample\CategoriesDAO.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "CategoriesExample\CategoriesDAOBase.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "CategoriesExample\CategoriesEntity.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "CategoriesExample\CategoriesEntityBase.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "CategoriesExample\CategoriesEntityCollection.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "CategoriesExample\CategoriesEntityDictionary.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "CategoriesExample\CategoriesEntityEnumerator.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "CategoriesExample\DbConstants.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "CategoriesExample\MockCategories.cs" + SubType = "Code" + BuildAction = "Compile" + /> </Include> </Files> Index: SchemaBuilderTest.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Data.Tests/SchemaBuilderTest.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SchemaBuilderTest.cs 18 Sep 2005 03:04:45 -0000 1.4 --- SchemaBuilderTest.cs 21 Oct 2005 04:59:20 -0000 1.5 *************** *** 20,36 **** [Test] ! public void BuildOleDbSchema() { DatabaseSchema ds = SchemaBuilder.CreateDatabaseSchema(this._oledbConnectionString, Adapdev.Data.DbType.SQLSERVER, Adapdev.Data.DbProviderType.OLEDB); Assert.AreEqual(29, ds.Tables.Count, "Northwind should have 29 tables / views."); Assert.IsTrue(ds.Tables.Contains("Orders")); } [Test] ! public void BuildSqlServerSchema() { ! DatabaseSchema ds = SchemaBuilder.CreateDatabaseSchema(this._oledbConnectionString, Adapdev.Data.DbType.SQLSERVER, Adapdev.Data.DbProviderType.OLEDB); Assert.AreEqual(29, ds.Tables.Count, "Northwind should have 29 tables / views."); Assert.IsTrue(ds.Tables.Contains("Orders")); } --- 20,51 ---- [Test] ! public void BuildSqlServerOleDbSchema() { DatabaseSchema ds = SchemaBuilder.CreateDatabaseSchema(this._oledbConnectionString, Adapdev.Data.DbType.SQLSERVER, Adapdev.Data.DbProviderType.OLEDB); Assert.AreEqual(29, ds.Tables.Count, "Northwind should have 29 tables / views."); Assert.IsTrue(ds.Tables.Contains("Orders")); + Assert.AreEqual(Adapdev.Data.DbProviderType.OLEDB, ds.DatabaseProviderType, "ProviderTypes don't match."); + Assert.AreEqual(Adapdev.Data.DbType.SQLSERVER, ds.DatabaseType, "DataTypes don't match."); + + foreach(ColumnSchema column in ds.GetTable("Orders").Columns.Values) + { + Console.WriteLine("{0} : {1}", column.Name, column.DataType); + } + } [Test] ! public void BuildSqlServerSqlSchema() { ! DatabaseSchema ds = SchemaBuilder.CreateDatabaseSchema(this._oledbConnectionString, Adapdev.Data.DbType.SQLSERVER, Adapdev.Data.DbProviderType.SQLSERVER); Assert.AreEqual(29, ds.Tables.Count, "Northwind should have 29 tables / views."); Assert.IsTrue(ds.Tables.Contains("Orders")); + Assert.AreEqual(Adapdev.Data.DbProviderType.SQLSERVER, ds.DatabaseProviderType, "ProviderTypes don't match."); + Assert.AreEqual(Adapdev.Data.DbType.SQLSERVER, ds.DatabaseType, "DataTypes don't match."); + + foreach(ColumnSchema column in ds.GetTable("Orders").Columns.Values) + { + Console.WriteLine("{0} : {1}", column.Name, column.DataType); + } } *************** *** 41,44 **** --- 56,61 ---- Assert.AreEqual(4, ds.Tables.Count, "codus_test should have 4 tables"); Assert.IsTrue(ds.Tables.Contains("alldatatypes")); + Assert.AreEqual(Adapdev.Data.DbProviderType.MYSQL, ds.DatabaseProviderType, "ProviderTypes don't match."); + Assert.AreEqual(Adapdev.Data.DbType.MYSQL, ds.DatabaseType, "DataTypes don't match."); } --- NEW FILE: CategoriesDAOTest.cs --- /****************************************** * Auto-generated by Codus * 9/30/2005 5:18:20 PM ******************************************/ using System; using System.Collections; using System.Data; using Test; using Test.Mock; using Adapdev.Serialization; using Adapdev.Transactions; using NUnit.Framework; namespace Test.Tests.NUnit { /// <summary> /// Summary description for ShippersDAOTest. /// </summary> /// [TestFixture] public class CategoriesDAOTest { CategoriesDAO dao = null; int total = 0; bool inserted = false; [TestFixtureSetUp] public void TestFixtureSetup() { dao = new CategoriesDAO(); total = dao.GetCount(); } [Test] public void Insert() { this.inserted = false; int count = dao.GetCount(); MockCategoriesEntity e = new MockCategoriesEntity(); dao.Save(e); Console.WriteLine("Inserted record: " + Environment.NewLine + e.ToString()); int count2 = dao.GetCount(); Assert.IsTrue(count == (count2 - 1), "Record was not inserted."); Assert.AreNotEqual(2, e.CategoryID, "CategoryId is an autoincrement and should be db assigned."); this.inserted = true; } [Test] public void InsertDistributedTransaction() { using(TransactionScope transaction = new TransactionScope()) { this.inserted = false; int count = dao.GetCount(); MockCategoriesEntity e = new MockCategoriesEntity(); dao.Save(e); Console.WriteLine("Inserted record: " + Environment.NewLine + e.ToString()); int count2 = dao.GetCount(); Assert.IsTrue(count == (count2 - 1), "Record was not inserted."); Assert.AreNotEqual(2, e.CategoryID, "CategoryId is an autoincrement and should be db assigned."); transaction.Abort(); } } [Test] public void InsertLocalTransaction() { int start = dao.GetCount(); using(IDbConnection c= dao.CreateConnection()) { c.Open(); Assert.IsTrue(c.State == ConnectionState.Open, "Connection is not open."); IDbTransaction t= c.BeginTransaction(); MockCategoriesEntity e = new MockCategoriesEntity(); dao.Save(e, c, t); Console.WriteLine("Inserted record: " + Environment.NewLine + e.ToString()); Assert.AreNotEqual(2, e.CategoryID, "CategoryId is an autoincrement and should be db assigned."); t.Rollback(); } int end = dao.GetCount(); Assert.AreEqual(start, end, "No record should have been inserted."); } [Test] public void SelectAll() { ICollection c = dao.SelectAll(); if(total > 0){ Assert.IsTrue(c.Count > 0, "No records returned."); //foreach(CategoriesEntity e in c) //{ // Console.WriteLine(e.ToString()); //} } } [Test] [Ignore("")] public void TestToString(){ ArrayList al = new ArrayList(dao.SelectAllWithLimit(1)); CategoriesEntity s = (CategoriesEntity)al[0]; Console.WriteLine(s.ToString()); } [Test] [Ignore("")] public void TestSerialize(){ ArrayList al = new ArrayList(dao.SelectAllWithLimit(1)); CategoriesEntity s = (CategoriesEntity)al[0]; Console.WriteLine(Serializer.SerializeToXml(s)); } [Test,Ignore("Only use this on a development database.")] public void Update() { if(this.inserted){ ArrayList al = new ArrayList(dao.SelectAllWithLimit(1, Adapdev.Data.Sql.OrderBy.DESCENDING, new string[]{CategoriesDAO.TABLE_PRIMARYKEY})); CategoriesEntity s = (CategoriesEntity)al[0]; Console.WriteLine("Record to be updated: "); Console.WriteLine(s.ToString()); s.CategoryName = "test"; s.Description = "test"; s.Picture = System.Text.Encoding.ASCII.GetBytes("Test String2"); dao.Update(s); Console.WriteLine("Updated record:"); Console.WriteLine(s.ToString()); CategoriesEntity s2 = (CategoriesEntity)dao.SelectById(s.CategoryID); Assert.AreEqual( s.CategoryID.ToString().Trim() , s2.CategoryID.ToString().Trim(), "Objects should be equal." ); Assert.AreEqual( s.CategoryName.ToString().Trim() , s2.CategoryName.ToString().Trim(), "Objects should be equal." ); Assert.AreEqual( s.Description.ToString().Trim() , s2.Description.ToString().Trim(), "Objects should be equal." ); Assert.AreEqual( s.Picture.ToString().Trim() , s2.Picture.ToString().Trim(), "Objects should be equal." ); }else{ throw new Exception("No test record inserted, so unable to perform update."); } } [TestFixtureTearDown] public void Delete() { if(inserted){ ArrayList al = new ArrayList(dao.SelectAllWithLimit(1, Adapdev.Data.Sql.OrderBy.DESCENDING, new string[]{CategoriesDAO.TABLE_PRIMARYKEY})); int count1 = dao.GetCount(); CategoriesEntity s = (CategoriesEntity)al[0]; Console.WriteLine("Deleted Record:"); Console.WriteLine(s.ToString()); dao.Delete(s.CategoryID); int count2 = dao.GetCount(); Assert.IsTrue(count2 == (count1 - 1), "Unable to delete record."); this.inserted = false; } } } } --- NEW FILE: Adapdev.Data.Tests.csproj.user --- <VisualStudioProject> <CSHARP LastOpenVersion = "7.10.3077" > <Build> <Settings ReferencePath = "D:\projects\Adapdev\Adapdev\lib\" > <Config Name = "Debug" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> <Config Name = "Release" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> </Settings> </Build> <OtherProjectSettings CopyProjectDestinationFolder = "" CopyProjectUncPath = "" CopyProjectOption = "0" ProjectView = "ProjectFiles" ProjectTrust = "0" /> </CSHARP> </VisualStudioProject> |
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core.Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/src/Adapdev.UnitTest.Core.Tests Modified Files: Adapdev.UnitTest.Core.Tests.csproj Added Files: Adapdev.UnitTest.Core.Tests.csproj.user NUnitLocalSeparateTestEngineTest.cs NUnitLocalTestEngineTest.cs Log Message: Several bug fixes for AbstractDAO Added unit tests for NUnit support --- NEW FILE: Adapdev.UnitTest.Core.Tests.csproj.user --- <VisualStudioProject> <CSHARP LastOpenVersion = "7.10.3077" > <Build> <Settings ReferencePath = "" > <Config Name = "Debug" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> <Config Name = "Release" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> </Settings> </Build> <OtherProjectSettings CopyProjectDestinationFolder = "" CopyProjectUncPath = "" CopyProjectOption = "0" ProjectView = "ProjectFiles" ProjectTrust = "0" /> </CSHARP> </VisualStudioProject> 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.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Adapdev.UnitTest.Core.Tests.csproj 5 Jun 2005 08:50:34 -0000 1.1 --- Adapdev.UnitTest.Core.Tests.csproj 21 Oct 2005 04:59:20 -0000 1.2 *************** *** 77,81 **** <Reference Name = "System.XML" ! AssemblyName = "System.XML" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" /> --- 77,81 ---- <Reference Name = "System.XML" ! AssemblyName = "System.Xml" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" /> *************** *** 91,94 **** --- 91,99 ---- Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" /> + <Reference + Name = "Adapdev" + Project = "{CC30A321-2569-4B1F-8E1A-781B5509B56D}" + Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" + /> </References> </Build> *************** *** 101,104 **** --- 106,119 ---- /> <File + RelPath = "NUnitLocalSeparateTestEngineTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "NUnitLocalTestEngineTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "TestAssemblyTest.cs" SubType = "Code" --- NEW FILE: NUnitLocalTestEngineTest.cs --- using System; using Adapdev; using Adapdev.UnitTest; using Adapdev.UnitTest.Core; using NUnit.Framework; namespace Adapdev.UnitTest.Core.Tests { /// <summary> /// Summary description for LocalSeparateTestEngineTest. /// </summary> /// [TestFixture] public class NUnitLocalTestEngineTest { private static readonly string basedir = @"d:\projects\Adapdev\Adapdev\"; [Test] public void LoadNUnit2_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(); Assert.IsTrue(assembly.GetTestCount() > 0, "No tests loaded."); } [Test] 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(); Assert.IsTrue(assembly.GetTestCount() > 0, "No tests loaded."); TestAssemblyResult result = engine.Run(engine.GetTestAssembly()); Assert.AreEqual(300, result.Passed); } } } --- NEW FILE: NUnitLocalSeparateTestEngineTest.cs --- using System; using Adapdev; using Adapdev.UnitTest; using Adapdev.UnitTest.Core; using NUnit.Framework; namespace Adapdev.UnitTest.Core.Tests { /// <summary> /// Summary description for LocalSeparateTestEngineTest. /// </summary> /// [TestFixture] 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."); TestAssembly assembly = engine.GetTestAssembly(); Assert.IsTrue(assembly.GetTestCount() > 0, "No tests loaded."); } } [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."); TestAssembly assembly = engine.GetTestAssembly(); Assert.IsTrue(assembly.GetTestCount() > 0, "No tests loaded."); TestAssemblyResult result = engine.Run(engine.GetTestAssembly()); Assert.AreEqual(299, result.Passed); } } [Test] 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."); TestAssembly assembly = engine.GetTestAssembly(); Assert.IsTrue(assembly.GetTestCount() > 0, "No tests loaded."); } } [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."); TestAssembly assembly = engine.GetTestAssembly(); Assert.IsTrue(assembly.GetTestCount() > 0, "No tests loaded."); TestAssemblyResult result = engine.Run(engine.GetTestAssembly()); Assert.AreEqual(368, result.Passed); } } } } |
From: Sean M. <int...@us...> - 2005-10-21 04:59:38
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Windows.Forms.Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/src/Adapdev.Windows.Forms.Tests Added Files: Adapdev.Windows.Forms.Tests.csproj.user Log Message: Several bug fixes for AbstractDAO Added unit tests for NUnit support --- NEW FILE: Adapdev.Windows.Forms.Tests.csproj.user --- <VisualStudioProject> <CSHARP LastOpenVersion = "7.10.3077" > <Build> <Settings ReferencePath = "D:\projects\Adapdev\Adapdev\lib\" > <Config Name = "Debug" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> <Config Name = "Release" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> </Settings> </Build> <OtherProjectSettings CopyProjectDestinationFolder = "" CopyProjectUncPath = "" CopyProjectOption = "0" ProjectView = "ProjectFiles" ProjectTrust = "0" /> </CSHARP> </VisualStudioProject> |
From: Sean M. <int...@us...> - 2005-10-21 04:59:38
|
Update of /cvsroot/adapdev/Adapdev/src/FullBuild In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/src/FullBuild Added Files: FullBuild.csproj.user Log Message: Several bug fixes for AbstractDAO Added unit tests for NUnit support --- NEW FILE: FullBuild.csproj.user --- <VisualStudioProject> <CSHARP LastOpenVersion = "7.10.3077" > <Build> <Settings ReferencePath = "" > <Config Name = "Debug" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> <Config Name = "Release" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> </Settings> </Build> <OtherProjectSettings CopyProjectDestinationFolder = "" CopyProjectUncPath = "" CopyProjectOption = "0" ProjectView = "ProjectFiles" ProjectTrust = "0" /> </CSHARP> </VisualStudioProject> |
From: Sean M. <int...@us...> - 2005-10-21 04:59:38
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Windows.Forms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/src/Adapdev.Windows.Forms Added Files: Adapdev.Windows.Forms.csproj.user Log Message: Several bug fixes for AbstractDAO Added unit tests for NUnit support --- NEW FILE: Adapdev.Windows.Forms.csproj.user --- <VisualStudioProject> <CSHARP LastOpenVersion = "7.10.3077" > <Build> <Settings ReferencePath = "D:\projects\Adapdev\Adapdev\lib\" > <Config Name = "Debug" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> <Config Name = "Release" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> </Settings> </Build> <OtherProjectSettings CopyProjectDestinationFolder = "" CopyProjectUncPath = "" CopyProjectOption = "0" ProjectView = "ProjectFiles" ProjectTrust = "0" /> </CSHARP> </VisualStudioProject> |
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/src/Adapdev.UnitTest.Core Modified Files: LocalSeparateTestEngine.cs LocalTestEngine.cs TestEngineFactory.cs TestSuiteBuilder.cs Added Files: Adapdev.UnitTest.Core.csproj.user Log Message: Several bug fixes for AbstractDAO Added unit tests for NUnit support Index: TestSuiteBuilder.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/TestSuiteBuilder.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TestSuiteBuilder.cs 18 Sep 2005 03:04:45 -0000 1.6 --- TestSuiteBuilder.cs 21 Oct 2005 04:59:20 -0000 1.7 *************** *** 374,378 **** Trace.Write("Not found. Trying to resolve " + lostAssemblyFilename); Assembly a = Assembly.LoadFile(lostAssemblyFilename); ! if(a != null) Trace.Write("Found. Loaded " + a.GetName().Name + " - " + a.GetName().Version + " - " + a.Location); return a; --- 374,378 ---- 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; *************** *** 382,386 **** { AssemblyName assemblyName = assembly.GetName(); ! Trace.Write("Probing for: " + assemblyName); if (! dependencyList.Contains(assemblyName.FullName)) { --- 382,386 ---- { AssemblyName assemblyName = assembly.GetName(); ! Trace.WriteLine("Probing for: " + assemblyName); if (! dependencyList.Contains(assemblyName.FullName)) { *************** *** 396,400 **** public void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args) { ! Trace.Write("Loading: " + args.LoadedAssembly.FullName); } } --- 396,400 ---- public void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args) { ! Trace.WriteLine("Loading: " + args.LoadedAssembly.FullName); } } Index: LocalTestEngine.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/LocalTestEngine.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** LocalTestEngine.cs 23 Apr 2005 04:54:13 -0000 1.2 --- LocalTestEngine.cs 21 Oct 2005 04:59:20 -0000 1.3 *************** *** 19,23 **** { manager = new AppDomainManager(); ! manager.AddAssemblies(this.assembly); this.assembly = assembly; } --- 19,23 ---- { manager = new AppDomainManager(); ! manager.AddAssembly(assembly); this.assembly = assembly; } Index: TestEngineFactory.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/TestEngineFactory.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** TestEngineFactory.cs 28 Feb 2005 01:32:21 -0000 1.1.1.1 --- TestEngineFactory.cs 21 Oct 2005 04:59:20 -0000 1.2 *************** *** 9,30 **** public class TestEngineFactory { ! public static LocalTestEngine CreateLocal(string assemblies) { ! return new LocalTestEngine(assemblies); } ! public static LocalSeparateTestEngine CreateLocalSeparate(string assemblies) { ! return new LocalSeparateTestEngine(assemblies); } ! public static LocalSeparateTestEngine CreateLocalSeparate(string basedir, string assemblies) { ! return new LocalSeparateTestEngine(basedir, assemblies); } ! public static LocalSeparateTestEngine CreateLocalSeparate(string basedir, string configfile, string assemblies) { ! return new LocalSeparateTestEngine(basedir, configfile, assemblies); } } --- 9,30 ---- public class TestEngineFactory { ! public static LocalTestEngine CreateLocal(string assembly) { ! return new LocalTestEngine(assembly); } ! public static LocalSeparateTestEngine CreateLocalSeparate(string assembly) { ! return new LocalSeparateTestEngine(assembly); } ! public static LocalSeparateTestEngine CreateLocalSeparate(string basedir, string assembly) { ! return new LocalSeparateTestEngine(basedir, assembly); } ! public static LocalSeparateTestEngine CreateLocalSeparate(string basedir, string configfile, string assembly) { ! return new LocalSeparateTestEngine(basedir, configfile, assembly); } } Index: LocalSeparateTestEngine.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest.Core/LocalSeparateTestEngine.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** LocalSeparateTestEngine.cs 28 Feb 2005 01:32:21 -0000 1.1.1.1 --- LocalSeparateTestEngine.cs 21 Oct 2005 04:59:20 -0000 1.2 *************** *** 95,99 **** public void Dispose() { ! if(!this.unloaded) Dispose(true); GC.SuppressFinalize(this); } --- 95,103 ---- public void Dispose() { ! if(!this.unloaded) ! { ! this.ShutDown(); ! Dispose(true); ! } GC.SuppressFinalize(this); } --- NEW FILE: Adapdev.UnitTest.Core.csproj.user --- <VisualStudioProject> <CSHARP LastOpenVersion = "7.10.3077" > <Build> <Settings ReferencePath = "D:\projects\Adapdev\Adapdev\lib\" > <Config Name = "Debug" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> <Config Name = "Release" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> </Settings> </Build> <OtherProjectSettings CopyProjectDestinationFolder = "" CopyProjectUncPath = "" CopyProjectOption = "0" ProjectView = "ProjectFiles" ProjectTrust = "0" /> </CSHARP> </VisualStudioProject> |
From: Sean M. <int...@us...> - 2005-10-21 04:59:38
|
Update of /cvsroot/adapdev/Adapdev/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/src Added Files: AdapdevFramework.resharperoptions AdapdevFramework.suo Log Message: Several bug fixes for AbstractDAO Added unit tests for NUnit support --- NEW FILE: AdapdevFramework.resharperoptions --- <Configuration> <RecentFilesTracker> <RecentFilesTracker> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data.Tests\SchemaBuilderTest.cs" offset="2723" line="45" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data\Schema\OleDbSchemaBuilder.cs" offset="1090" line="8" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data\Schema\SchemaBuilder.cs" offset="2444" line="49" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data.Tests\CategoriesDAOTest.cs" offset="144" line="0" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.CodeGen\NVelocityTableCodeTemplate.cs" offset="5725" line="396" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data.Tests\CategoriesExample\MockCategories.cs" offset="0" line="-1" column="-1" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data\AbstractDAO.cs" offset="24052" line="0" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data.Tests\CategoriesExample\CategoriesDAOBase.cs" offset="7636" line="64" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data.Tests\CategoriesExample\DbConstants.cs" offset="0" line="0" column="71" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data.Tests\CategoriesExample\CategoriesDAO.cs" offset="0" line="6" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data\Sql\QueryHelper.cs" offset="4888" line="150" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data.Tests\CategoriesExample\CategoriesEntityBase.cs" offset="1335" line="54" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data\Sql\ISelectQuery.cs" offset="1802" line="47" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data\Sql\SqlSelectQuery.cs" offset="0" line="-1" column="-1" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data\Sql\SelectQuery.cs" offset="3347" line="109" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data\Schema\MySqlSchemaBuilder.cs" offset="3438" line="82" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data\Xml\ProviderInfo.xml" offset="0" line="1498" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev\AppDomainManager.cs" offset="1129" line="12" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.UnitTest.Core\TestSuiteBuilder.cs" offset="2020" line="209" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.UnitTest.Core\LocalSeparateTestEngine.cs" offset="0" line="55" column="0" /> <TrackedFile location="D:\projects\Adapdev\Adapdev\src\Adapdev.Data\Schema\TableSchema.cs" offset="638" line="7" column="0" /> </RecentFilesTracker> </RecentFilesTracker> <CompletionStatisticsManager> <ItemStatistics item="Qualified:Adapdev.Data.Schema.DatabaseSchema"> <Item value="DatabaseType" priority="1" /> <Item value="DatabaseProviderType" priority="1" /> <Item value="GetTable" priority="0" /> <Item value="Tables" priority="0" /> </ItemStatistics> <ItemStatistics item="Qualified:Adapdev.Transactions.TransactionScope"> <Item value="Abort" priority="0" /> </ItemStatistics> <ItemStatistics item="Qualified:@Adapdev.Data.DbProviderType"> <Item value="MYSQL" priority="0" /> <Item value="OLEDB" priority="1" /> <Item value="SQLSERVER" priority="2" /> </ItemStatistics> <ItemStatistics item="Qualified:Adapdev.Data.Schema.ColumnSchema"> <Item value="DataType" priority="0" /> <Item value="DataTypeId" priority="0" /> <Item value="Name" priority="0" /> </ItemStatistics> <ItemStatistics item="Qualified:Adapdev.Data.Schema.ColumnSchemaDictionary"> <Item value="Values" priority="0" /> </ItemStatistics> <ItemStatistics item="Qualified:System.Data.IDbConnection"> <Item value="State" priority="0" /> </ItemStatistics> <ItemStatistics item="Qualified:@Adapdev.Data.DbType"> <Item value="MYSQL" priority="0" /> <Item value="SQLSERVER" priority="0" /> </ItemStatistics> <ItemStatistics item="Qualified:System.Data.IDbTransaction"> <Item value="Rollback" priority="0" /> </ItemStatistics> <ItemStatistics item="Qualified:Test.Mock.MockCategoriesEntity"> <Item value="CategoryID" priority="1" /> </ItemStatistics> <ItemStatistics item="Qualified:Test.CategoriesDAO"> <Item value="GetCount" priority="1" /> </ItemStatistics> <ItemStatistics item="Qualified:@Adapdev.Data"> <Item value="DbType" priority="0" /> <Item value="DbProviderType" priority="0" /> </ItemStatistics> <ItemStatistics item="Qualified:@Adapdev"> <Item value="Transactions" priority="0" /> <Item value="Data" priority="0" /> </ItemStatistics> </CompletionStatisticsManager> <SettingsComponent> <string /> <integer /> <boolean /> </SettingsComponent> </Configuration> --- NEW FILE: AdapdevFramework.suo --- (This appears to be a binary file; contents omitted.) |
From: Sean M. <int...@us...> - 2005-10-21 04:59:37
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Cache In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/src/Adapdev.Cache Added Files: Adapdev.Cache.csproj.user Log Message: Several bug fixes for AbstractDAO Added unit tests for NUnit support --- NEW FILE: Adapdev.Cache.csproj.user --- <VisualStudioProject> <CSHARP LastOpenVersion = "7.10.3077" > <Build> <Settings ReferencePath = "D:\projects\Adapdev\Adapdev\lib\" > <Config Name = "Debug" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> <Config Name = "Release" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> </Settings> </Build> <OtherProjectSettings CopyProjectDestinationFolder = "" CopyProjectUncPath = "" CopyProjectOption = "0" ProjectView = "ProjectFiles" ProjectTrust = "0" /> </CSHARP> </VisualStudioProject> |
From: Sean M. <int...@us...> - 2005-10-21 04:59:37
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/src/Adapdev.UnitTest Modified Files: Assert.cs Added Files: Adapdev.UnitTest.csproj.user Log Message: Several bug fixes for AbstractDAO Added unit tests for NUnit support Index: Assert.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest/Assert.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Assert.cs 28 Feb 2005 01:32:18 -0000 1.1.1.1 --- Assert.cs 21 Oct 2005 04:59:20 -0000 1.2 *************** *** 484,487 **** --- 484,537 ---- } + + #region AreNotEqual + + /// <summary> + /// Asserts that two objects are not equal. If they are equal + /// an <see cref="AssertionException"/> is thrown. + /// </summary> + /// <param name="expected">The expected object</param> + /// <param name="actual">The actual object</param> + /// <param name="message">The message to be printed when the two objects are the same object.</param> + /// <param name="args">Arguments to be used in formatting the message</param> + static public void AreNotEqual( Object expected, Object actual, string message, params object[] args) + { + if ( expected == null && actual == null ) Fail(); + if ( expected == null || actual == null ) return; + + if ( expected.GetType().IsArray && actual.GetType().IsArray ) + { + if ( ArraysEqual( (Array)expected, (Array)actual ) ) + Fail(); + } + else if ( ObjectsEqual( expected, actual ) ) + Fail(); + } + + /// <summary> + /// Asserts that two objects are not equal. If they are equal + /// an <see cref="AssertionException"/> is thrown. + /// </summary> + /// <param name="expected">The expected object</param> + /// <param name="actual">The actual object</param> + /// <param name="message">The message to be printed when the objects are the same</param> + static public void AreNotEqual(Object expected, Object actual, string message) + { + Assert.AreNotEqual(expected, actual, message, null); + } + + /// <summary> + /// Asserts that two objects are not equal. If they are equal + /// an <see cref="AssertionException"/> is thrown. + /// </summary> + /// <param name="expected">The expected object</param> + /// <param name="actual">The actual object</param> + static public void AreNotEqual(Object expected, Object actual) + { + Assert.AreNotEqual(expected, actual, string.Empty, null); + } + + #endregion + /// <summary> /// The Equals method throws an AssertionException. This is done *************** *** 813,816 **** --- 863,886 ---- Assert.Fail(formatted+"expected same"); } + + + private static bool ArraysEqual( Array expected, Array actual ) + { + if ( expected.Rank != actual.Rank ) + return false; + + if ( expected.Rank != 1 ) + throw new ArgumentException( "Multi-dimension array comparison is not supported" ); + + int iLength = Math.Min( expected.Length, actual.Length ); + for( int i = 0; i < iLength; i++ ) + if ( !ObjectsEqual( expected.GetValue( i ), actual.GetValue( i ) ) ) + return false; + + if ( expected.Length != actual.Length ) + return false; + + return true; + } } } \ No newline at end of file --- NEW FILE: Adapdev.UnitTest.csproj.user --- <VisualStudioProject> <CSHARP LastOpenVersion = "7.10.3077" > <Build> <Settings ReferencePath = "D:\projects\Adapdev\Adapdev\lib\" > <Config Name = "Debug" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> <Config Name = "Release" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> </Settings> </Build> <OtherProjectSettings CopyProjectDestinationFolder = "" CopyProjectUncPath = "" CopyProjectOption = "0" ProjectView = "ProjectFiles" ProjectTrust = "0" /> </CSHARP> </VisualStudioProject> |
From: Sean M. <int...@us...> - 2005-10-21 04:59:37
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Cache.Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/src/Adapdev.Cache.Tests Added Files: Adapdev.Cache.Tests.csproj.user Log Message: Several bug fixes for AbstractDAO Added unit tests for NUnit support --- NEW FILE: Adapdev.Cache.Tests.csproj.user --- <VisualStudioProject> <CSHARP LastOpenVersion = "7.10.3077" > <Build> <Settings ReferencePath = "D:\projects\Adapdev\Adapdev\lib\" > <Config Name = "Debug" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> <Config Name = "Release" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> </Settings> </Build> <OtherProjectSettings CopyProjectDestinationFolder = "" CopyProjectUncPath = "" CopyProjectOption = "0" ProjectView = "ProjectFiles" ProjectTrust = "0" /> </CSHARP> </VisualStudioProject> |
From: Sean M. <int...@us...> - 2005-10-21 04:59:37
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/src/Adapdev.Tests Added Files: Adapdev.Tests.csproj.user Log Message: Several bug fixes for AbstractDAO Added unit tests for NUnit support --- NEW FILE: Adapdev.Tests.csproj.user --- <VisualStudioProject> <CSHARP LastOpenVersion = "7.10.3077" > <Build> <Settings ReferencePath = "D:\projects\Adapdev\Adapdev\lib\" > <Config Name = "Debug" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> <Config Name = "Release" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "false" /> </Settings> </Build> <OtherProjectSettings CopyProjectDestinationFolder = "" CopyProjectUncPath = "" CopyProjectOption = "0" ProjectView = "ProjectFiles" ProjectTrust = "0" /> </CSHARP> </VisualStudioProject> |
From: Sean M. <int...@us...> - 2005-10-21 04:59:37
|
Update of /cvsroot/adapdev/Adapdev/lib/nunit222 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/lib/nunit222 Added 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: Several bug fixes for AbstractDAO Added unit tests for NUnit support --- NEW FILE: notestfixtures-assembly.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nunit.framework.tests.dll.config --- <?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. --> <configSections> <sectionGroup name="NUnit"> <section name="TestCaseBuilder" type="System.Configuration.NameValueSectionHandler"/> <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> <TestCaseBuilder> <!-- Set to true to recognize old style test cases starting with "Test..." --> <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-microsoft-com:asm.v1" appliesTo="v1.0.3705"> <dependentAssembly> <assemblyIdentity name="System" publicKeyToken="b77a5c561934e089" culture=""/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Data" publicKeyToken="b77a5c561934e089" culture=""/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Drawing" publicKeyToken="b03f5f7f11d50a3a" culture=""/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Windows.Forms" publicKeyToken="b77a5c561934e089" culture=""/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Xml" publicKeyToken="b77a5c561934e089" culture=""/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> </assemblyBinding> </runtime> </configuration> --- NEW FILE: nunit.framework.tests.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nunit.testutilities.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.core.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: nonamespace-assembly.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.) |