* Added test to make sure version info is 27 chars long (still don't know exactly why it has to be that, though)

0.6.6-post-fixes
lbsa71 2009-05-26 15:35:55 +00:00
parent bc2a22fb4b
commit bac1194391
2 changed files with 18 additions and 0 deletions

View File

@ -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." );
}
}
}

View File

@ -33,6 +33,7 @@ namespace OpenSim
/// This is the OpenSim version string. Change this if you are releasing a new OpenSim version.
/// </value>
public readonly static string Version = "OpenSimulator Server 0.6.5"; // stay with 27 chars (used in regioninfo)
public const int VERSIONINFO_VERSION_LENGTH = 27;
/// <value>
/// This is the external interface version. It is separate from the OpenSimulator project version.