Ejemplo n.º 1
0
        public void TestBasicVersionStringParsingWorks()
        {
            FxA.Version v;

            v = new FxA.Version("0.8a");
            Assert.AreEqual("0.8a", v.ToString());

            v = new FxA.Version("0.4b");
            Assert.AreEqual("0.4b", v.ToString());

            v = new FxA.Version("0.7");
            Assert.AreEqual("0.7", v.ToString());
        }
        public void TestAdvancedVersionStringParsingWorks()
        {
            FxA.Version v;

            v = new FxA.Version("0.82a");
            Assert.AreEqual("0.82a", v.ToString());

            v = new FxA.Version("4.20b");
            Assert.AreEqual("4.20b", v.ToString());

            v = new FxA.Version("3.5,z");
            Assert.AreEqual("3.5a", v.ToString());

            v = new FxA.Version("4.1 Wookie");
            Assert.AreEqual("4.1a", v.ToString());
        }