public void testSameInstance() { SifVersion v1 = SifVersion.Parse("2.0"); Assert.IsTrue(v1 == SifVersion.SIF20, "2.0"); Assert.IsTrue(v1.Equals(SifVersion.SIF20), "2.0"); v1 = SifVersion.Parse("2.0r1"); Assert.IsTrue(v1 == SifVersion.SIF20r1, "2.0r1"); Assert.IsTrue(v1.Equals(SifVersion.SIF20r1), "2.0r1"); v1 = SifVersion.Parse("2.1"); Assert.IsTrue(v1 == SifVersion.SIF21, "2.1"); Assert.IsTrue(v1.Equals(SifVersion.SIF21), "2.1"); v1 = SifVersion.Parse("1.1"); Assert.IsTrue(v1 == SifVersion.SIF11, "1.1"); Assert.IsTrue(v1.Equals(SifVersion.SIF11), "1.1"); v1 = SifVersion.Parse("1.5r1"); Assert.IsTrue(v1 == SifVersion.SIF15r1, "1.5r1"); Assert.IsTrue(v1.Equals(SifVersion.SIF15r1), "1.5r1"); v1 = SifVersion.Parse("3.69r55"); SifVersion v2 = SifVersion.Parse("3.69r55"); Assert.IsTrue(v1 == v2, "3.69r55"); Assert.IsTrue(v1.Equals(v2)); }