From 5d23ecebeb971b78b8a9847b6be634bf0f48c359 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Tue, 26 May 2009 16:01:06 +0000 Subject: * Introduced GetVersionString so we can harness the whole thing. * Introduced 'Flavour' to spice things up. --- OpenSim/Framework/Servers/Tests/VersionInfoTests.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'OpenSim/Framework/Servers/Tests') 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 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"); } } } -- cgit v1.1