From bac1194391c663433e997c5985aae394b75869a3 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Tue, 26 May 2009 15:35:55 +0000 Subject: * Added test to make sure version info is 27 chars long (still don't know exactly why it has to be that, though) --- OpenSim/Framework/Servers/Tests/VersionInfoTests.cs | 17 +++++++++++++++++ OpenSim/Framework/Servers/VersionInfo.cs | 1 + 2 files changed, 18 insertions(+) create mode 100644 OpenSim/Framework/Servers/Tests/VersionInfoTests.cs (limited to 'OpenSim') diff --git a/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs b/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs new file mode 100644 index 0000000..5eb362b --- /dev/null +++ b/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Text; +using NUnit.Framework; + +namespace OpenSim.Framework.Servers.Tests +{ + [TestFixture] + public class VersionInfoTests + { + [Test] + public void TestVersionInfoLength() + { + Assert.AreEqual( VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars." ); + } + } +} diff --git a/OpenSim/Framework/Servers/VersionInfo.cs b/OpenSim/Framework/Servers/VersionInfo.cs index c16a7f4..1b8a8be 100644 --- a/OpenSim/Framework/Servers/VersionInfo.cs +++ b/OpenSim/Framework/Servers/VersionInfo.cs @@ -33,6 +33,7 @@ namespace OpenSim /// This is the OpenSim version string. Change this if you are releasing a new OpenSim version. /// public readonly static string Version = "OpenSimulator Server 0.6.5"; // stay with 27 chars (used in regioninfo) + public const int VERSIONINFO_VERSION_LENGTH = 27; /// /// This is the external interface version. It is separate from the OpenSimulator project version. -- cgit v1.1