Example #1
0
        public void UpdateCurrentType(Type pTypeA, Type pTypeB, Type pExpectType)
        {
            var d = new TravPathData("");

            d.UpdateCurrentType(pTypeA);
            Type resultA = d.CurrType;

            d.UpdateCurrentType(pTypeB);
            Type resultB = d.CurrType;

            Assert.AreEqual(pTypeA, resultA, "Incorrect Result A.");
            Assert.AreEqual(pExpectType, resultB, "Incorrect Result A.");
        }