diff options
Diffstat (limited to 'OpenSim/Framework/Servers/Tests')
-rw-r--r-- | OpenSim/Framework/Servers/Tests/VersionInfoTests.cs | 11 |
1 files changed, 9 insertions, 2 deletions
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 | |||
9 | public class VersionInfoTests | 9 | public class VersionInfoTests |
10 | { | 10 | { |
11 | [Test] | 11 | [Test] |
12 | public void TestVersionInfoLength() | 12 | public void TestVersionLength() |
13 | { | 13 | { |
14 | Assert.AreEqual( VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars." ); | 14 | Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars." ); |
15 | } | ||
16 | |||
17 | [Test] | ||
18 | public void TestGetVersionStringLength() | ||
19 | { | ||
20 | Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.GetVersionString("0.0.0").Length, "0.0.0 failed"); | ||
21 | Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.GetVersionString("9.99.99").Length, "9.99.99 failed"); | ||
15 | } | 22 | } |
16 | } | 23 | } |
17 | } | 24 | } |