Inheritance: IUpgradePath
Exemple #1
0
        public void UpgradePath_CanUpgrade_NoVersion_ExpectTrue()
        {
            //------------Setup for test--------------------------
            var upgrade = new UpgradePath(new Version(0,0), new Version(2,0), new ResourceUpgrade(a=>a));

            //------------Execute Test---------------------------

            //------------Assert Results-------------------------
            Assert.IsTrue(upgrade.CanUpgrade(XElement.Parse("<a></a>")));
        }
Exemple #2
0
        public void UpgradePath_CanUpgrade_NoVersion_ExpectFalse()
        {
            //------------Setup for test--------------------------
            var upgrade = new UpgradePath(new Version(1, 0), new Version(2, 0), new ResourceUpgrade(a => a));

            //------------Execute Test---------------------------

            //------------Assert Results-------------------------
            Assert.IsFalse(upgrade.CanUpgrade(XElement.Parse("<a ServerVersion=\"3.4.5.6\"></a>")));
        }