Exemplo n.º 1
0
        public void CreateNavigator_Expected_XmlNavigator()
        {
            StringInterrogator stringInterrogator = new StringInterrogator();

            INavigator navigator = stringInterrogator.CreateNavigator(XmlGiven(), typeof(XmlPath));

            Type expected = typeof(XmlNavigator);
            Type actual   = navigator.GetType();

            Assert.AreEqual(expected, actual);
        }
        public void CreateNavigator_Expected_PocoNavigator()
        {
            PocoTestData     pocoTestData     = Given();
            PocoInterrogator pocoInterrogator = new PocoInterrogator();

            INavigator navigator = pocoInterrogator.CreateNavigator(pocoTestData, typeof(PocoPath));

            Type expected = typeof(PocoNavigator);
            Type actual   = navigator.GetType();

            Assert.AreEqual(expected, actual);
        }