[jboss-cvs] JBoss Messaging SVN: r5785 - in branches/dotNetTest/dotnet: JBMClient and 3 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Feb 2 19:17:00 EST 2009
Author: clebert.suconic at jboss.com
Date: 2009-02-02 19:17:00 -0500 (Mon, 02 Feb 2009)
New Revision: 5785
Modified:
branches/dotNetTest/dotnet/JBMClient/JBMClient.csproj
branches/dotNetTest/dotnet/JBMClient/util/SimpleString.cs
branches/dotNetTest/dotnet/JBMClientSolution.sln
branches/dotNetTest/dotnet/JBMClientTest/JBMClientTest.csproj
branches/dotNetTest/dotnet/JBMClientTest/util/JBMTest.cs
branches/dotNetTest/dotnet/JBMClientTest/util/SimpleStringTest.cs
Log:
updates from MonoDevelop
Modified: branches/dotNetTest/dotnet/JBMClient/JBMClient.csproj
===================================================================
--- branches/dotNetTest/dotnet/JBMClient/JBMClient.csproj 2009-02-02 21:48:09 UTC (rev 5784)
+++ branches/dotNetTest/dotnet/JBMClient/JBMClient.csproj 2009-02-03 00:17:00 UTC (rev 5785)
@@ -21,6 +21,11 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <OutputType>Library</OutputType>
+ <AssemblyName>JSMClient</AssemblyName>
+ <RootNamespace>JSMClient</RootNamespace>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
+ <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -29,6 +34,12 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <OutputType>Library</OutputType>
+ <AssemblyName>JSMClient</AssemblyName>
+ <DebugSymbols>true</DebugSymbols>
+ <RootNamespace>JSMClient</RootNamespace>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
+ <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Modified: branches/dotNetTest/dotnet/JBMClient/util/SimpleString.cs
===================================================================
--- branches/dotNetTest/dotnet/JBMClient/util/SimpleString.cs 2009-02-02 21:48:09 UTC (rev 5784)
+++ branches/dotNetTest/dotnet/JBMClient/util/SimpleString.cs 2009-02-03 00:17:00 UTC (rev 5785)
@@ -269,7 +269,6 @@
byte[] bytes2 = new byte[data.Length - lasPos];
Array.Copy(data, lasPos, bytes2, 0, bytes2.Length);
all.Add(new SimpleString(bytes2));
- SimpleString[] parts = new SimpleString[all.Count()];
return all.ToArray();
}
}
Modified: branches/dotNetTest/dotnet/JBMClientSolution.sln
===================================================================
--- branches/dotNetTest/dotnet/JBMClientSolution.sln 2009-02-02 21:48:09 UTC (rev 5784)
+++ branches/dotNetTest/dotnet/JBMClientSolution.sln 2009-02-03 00:17:00 UTC (rev 5785)
@@ -13,13 +13,6 @@
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JBMClientTest", "JBMClientTest\JBMClientTest.csproj", "{D6A96159-0551-41C2-9E94-1F253F79AD39}"
EndProject
Global
- GlobalSection(SubversionScc) = preSolution
- Svn-Managed = True
- Manager = AnkhSVN - Subversion Support for Visual Studio
- EndGlobalSection
- GlobalSection(TestCaseManagementSettings) = postSolution
- CategoryFile = JBMClientSolution.vsmdi
- EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
@@ -34,10 +27,18 @@
{D6A96159-0551-41C2-9E94-1F253F79AD39}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D6A96159-0551-41C2-9E94-1F253F79AD39}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {675AD929-BF42-4930-AC39-603D5EC52D58} = {18364D7F-A814-4360-9BF1-FBD18737B399}
+ {D6A96159-0551-41C2-9E94-1F253F79AD39} = {18364D7F-A814-4360-9BF1-FBD18737B399}
+ EndGlobalSection
+ GlobalSection(SubversionScc) = preSolution
+ Svn-Managed = True
+ Manager = AnkhSVN - Subversion Support for Visual Studio
+ EndGlobalSection
+ GlobalSection(TestCaseManagementSettings) = postSolution
+ CategoryFile = JBMClientSolution.vsmdi
+ EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {675AD929-BF42-4930-AC39-603D5EC52D58} = {18364D7F-A814-4360-9BF1-FBD18737B399}
- EndGlobalSection
EndGlobal
Modified: branches/dotNetTest/dotnet/JBMClientTest/JBMClientTest.csproj
===================================================================
--- branches/dotNetTest/dotnet/JBMClientTest/JBMClientTest.csproj 2009-02-02 21:48:09 UTC (rev 5784)
+++ branches/dotNetTest/dotnet/JBMClientTest/JBMClientTest.csproj 2009-02-03 00:17:00 UTC (rev 5785)
@@ -11,7 +11,7 @@
<AssemblyName>JMSClientTest</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <ProjectTypeGuids>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -21,6 +21,12 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <OutputType>Library</OutputType>
+ <AssemblyName>JMSClientTest</AssemblyName>
+ <RootNamespace>JMSClientTest</RootNamespace>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
+ <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
+ <ApplicationIcon>.</ApplicationIcon>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -29,15 +35,20 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <OutputType>Library</OutputType>
+ <AssemblyName>JMSClientTest</AssemblyName>
+ <DebugSymbols>true</DebugSymbols>
+ <RootNamespace>JMSClientTest</RootNamespace>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
+ <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
+ <ApplicationIcon>.</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
- <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
+ <Reference Include="nunit.framework, Version=2.2.0.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
Modified: branches/dotNetTest/dotnet/JBMClientTest/util/JBMTest.cs
===================================================================
--- branches/dotNetTest/dotnet/JBMClientTest/util/JBMTest.cs 2009-02-02 21:48:09 UTC (rev 5784)
+++ branches/dotNetTest/dotnet/JBMClientTest/util/JBMTest.cs 2009-02-03 00:17:00 UTC (rev 5785)
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
+using NUnit.Framework;
namespace JMSClientTest.util
{
Modified: branches/dotNetTest/dotnet/JBMClientTest/util/SimpleStringTest.cs
===================================================================
--- branches/dotNetTest/dotnet/JBMClientTest/util/SimpleStringTest.cs 2009-02-02 21:48:09 UTC (rev 5784)
+++ branches/dotNetTest/dotnet/JBMClientTest/util/SimpleStringTest.cs 2009-02-03 00:17:00 UTC (rev 5785)
@@ -2,7 +2,7 @@
using System.Text;
using System.Collections.Generic;
using System.Linq;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
+using NUnit.Framework;
using JSMClient.util;
namespace JMSClientTest.util
@@ -10,7 +10,7 @@
/// <summary>
/// Summary description for SimpleStringTest
/// </summary>
- [TestClass]
+ [TestFixture]
public class SimpleStringTest : JBMTest
{
public SimpleStringTest()
@@ -20,47 +20,8 @@
//
}
- private TestContext testContextInstance;
- /// <summary>
- ///Gets or sets the test context which provides
- ///information about and functionality for the current test run.
- ///</summary>
- public TestContext TestContext
- {
- get
- {
- return testContextInstance;
- }
- set
- {
- testContextInstance = value;
- }
- }
-
- #region Additional test attributes
- //
- // You can use the following additional attributes as you write your tests:
- //
- // Use ClassInitialize to run code before running the first test in the class
- // [ClassInitialize()]
- // public static void MyClassInitialize(TestContext testContext) { }
- //
- // Use ClassCleanup to run code after all tests in a class have run
- // [ClassCleanup()]
- // public static void MyClassCleanup() { }
- //
- // Use TestInitialize to run code before running each test
- // [TestInitialize()]
- // public void MyTestInitialize() { }
- //
- // Use TestCleanup to run code after each test has run
- // [TestCleanup()]
- // public void MyTestCleanup() { }
- //
- #endregion
-
- [TestMethod]
+ [Test]
public void testString()
{
string str = "hello123ABC__524`16254`6125!%^$!%$!%$!%$!%!$%!$$!\uA324";
@@ -78,7 +39,7 @@
assertEquals(str, s2.ToString());
}
- [TestMethod]
+ [Test]
public void testStartsWith()
{
SimpleString s1 = new SimpleString("abcdefghi");
@@ -96,7 +57,7 @@
assertFalse(s1.StartsWith(new SimpleString("z")));
}
- [TestMethod]
+ [Test]
public void testCharSequence()
{
string s = "abcdefghijkl";
@@ -214,7 +175,7 @@
}
}
- [TestMethod]
+ [Test]
public void testEquals()
{
assertFalse(new SimpleString("abcdef").Equals(new Object()));
@@ -225,7 +186,7 @@
assertFalse(new SimpleString("abcdef").Equals(new SimpleString("ghijkl")));
}
- [TestMethod]
+ [Test]
public void testHashcode()
{
SimpleString str = new SimpleString("abcdef");
@@ -236,7 +197,7 @@
assertFalse(str.GetHashCode() == differentStr.GetHashCode());
}
- [TestMethod]
+ [Test]
public void testUnicode()
{
String myString = "abcdef&^*&!^ghijkl\uB5E2\uCAC7\uB2BB\uB7DD\uB7C7\uB3A3\uBCE4\uB5A5";
@@ -248,7 +209,7 @@
assertEquals(myString, s.ToString());
}
- [TestMethod]
+ [Test]
public void testUnicodeWithSurrogates()
{
String myString = "abcdef&^*&!^ghijkl\uD900\uDD00";
@@ -260,7 +221,7 @@
assertEquals(myString, s.ToString());
}
- [TestMethod]
+ [Test]
public void testSizeofString()
{
assertEquals(DataConstants.SIZE_INT, SimpleString.SizeofString(new SimpleString("")));
@@ -270,7 +231,7 @@
assertEquals(DataConstants.SIZE_INT + str.GetData().Length, SimpleString.SizeofString(str));
}
- [TestMethod]
+ [Test]
public void testSizeofNullableString()
{
assertEquals(1, SimpleString.SizeofNullableString(null));
@@ -281,7 +242,7 @@
assertEquals(1 + DataConstants.SIZE_INT + str.GetData().Length, SimpleString.SizeofNullableString(str));
}
- [TestMethod]
+ [Test]
public void testSplitNoDelimeter()
{
SimpleString s = new SimpleString("abcdefghi");
@@ -291,7 +252,7 @@
assertEquals(strings[0], s);
}
- [TestMethod]
+ [Test]
public void testSplit1Delimeter()
{
SimpleString s = new SimpleString("abcd.efghi");
@@ -302,7 +263,7 @@
assertEquals(strings[1], new SimpleString("efghi"));
}
- [TestMethod]
+ [Test]
public void testSplitmanyDelimeters()
{
SimpleString s = new SimpleString("abcd.efghi.jklmn.opqrs.tuvw.xyz");
@@ -317,7 +278,7 @@
assertEquals(strings[5], new SimpleString("xyz"));
}
- [TestMethod]
+ [Test]
public void testContains()
{
SimpleString simpleString = new SimpleString("abcdefghijklmnopqrst");
@@ -347,7 +308,7 @@
assertTrue(simpleString.Contains('t'));
}
- [TestMethod]
+ [Test]
public void testConcat()
{
SimpleString start = new SimpleString("abcdefg");
@@ -357,7 +318,7 @@
assertEquals(start.Concat('.').Concat(end), new SimpleString("abcdefg.qrstuvwxyz"));
}
- [TestMethod]
+ [Test]
public void testConcat33()
{
SimpleString start = new SimpleString("a");
More information about the jboss-cvs-commits
mailing list