diff --git a/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs b/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs new file mode 100644 index 0000000000..5eb362b42a --- /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 c16a7f4534..1b8a8be798 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.