mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
* Introduced GetVersionString so we can harness the whole thing.
* Introduced 'Flavour' to spice things up.
This commit is contained in:
@@ -9,9 +9,16 @@ namespace OpenSim.Framework.Servers.Tests
|
||||
public class VersionInfoTests
|
||||
{
|
||||
[Test]
|
||||
public void TestVersionInfoLength()
|
||||
public void TestVersionLength()
|
||||
{
|
||||
Assert.AreEqual( VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars." );
|
||||
Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars." );
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestGetVersionStringLength()
|
||||
{
|
||||
Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.GetVersionString("0.0.0").Length, "0.0.0 failed");
|
||||
Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.GetVersionString("9.99.99").Length, "9.99.99 failed");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user