public void TestVersionComparison() { FxA.Version v1, v2, v3; v1 = new FxA.Version("0.8a"); v2 = new FxA.Version("0.7a"); v3 = new FxA.Version("0.8a"); Assert.That(v1.CompareTo(v2) == 1); Assert.That(v2.CompareTo(v1) == -1); Assert.That(v1.CompareTo(v3) == 0); }
public void TestVersionComparisonWithDifferentRelease() { // Release types are ignored for now FxA.Version v1, v2; v1 = new FxA.Version("0.8a"); v2 = new FxA.Version("0.8b"); Assert.That(v1.CompareTo(v2) == 0); }