aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/Tests
diff options
context:
space:
mode:
authorlbsa712009-05-26 16:01:06 +0000
committerlbsa712009-05-26 16:01:06 +0000
commit5d23ecebeb971b78b8a9847b6be634bf0f48c359 (patch)
treef7e69d1f947ab3c71bbfbff495f564775ff0515a /OpenSim/Framework/Servers/Tests
parent* slowly getting there... (diff)
downloadopensim-SC_OLD-5d23ecebeb971b78b8a9847b6be634bf0f48c359.zip
opensim-SC_OLD-5d23ecebeb971b78b8a9847b6be634bf0f48c359.tar.gz
opensim-SC_OLD-5d23ecebeb971b78b8a9847b6be634bf0f48c359.tar.bz2
opensim-SC_OLD-5d23ecebeb971b78b8a9847b6be634bf0f48c359.tar.xz
* Introduced GetVersionString so we can harness the whole thing.
* Introduced 'Flavour' to spice things up.
Diffstat (limited to 'OpenSim/Framework/Servers/Tests')
-rw-r--r--OpenSim/Framework/Servers/Tests/VersionInfoTests.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs b/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs
index 5eb362b..1a3d98c 100644
--- a/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs
+++ b/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs
@@ -9,9 +9,16 @@ namespace OpenSim.Framework.Servers.Tests
9 public class VersionInfoTests 9 public class VersionInfoTests
10 { 10 {
11 [Test] 11 [Test]
12 public void TestVersionInfoLength() 12 public void TestVersionLength()
13 { 13 {
14 Assert.AreEqual( VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars." ); 14 Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars." );
15 }
16
17 [Test]
18 public void TestGetVersionStringLength()
19 {
20 Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.GetVersionString("0.0.0").Length, "0.0.0 failed");
21 Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.GetVersionString("9.99.99").Length, "9.99.99 failed");
15 } 22 }
16 } 23 }
17} 24}