public void StringInterrogator_CreateNavigator_Given_TypeofUnExistingType_Expected_PocoPath()
        {
            var stringInterrogator = new StringInterrogator();
            var navigator          = stringInterrogator.CreateNavigator(XmlGiven(), typeof(UnExistingType));

            Assert.IsNull(navigator);
        }
        public void StringInterrogator_CreateNavigator_Given_TypeofPocoPath_Expected_PocoNavigator()
        {
            var stringInterrogator = new StringInterrogator();
            var navigator          = stringInterrogator.CreateNavigator(XmlGiven(), typeof(PocoPath));

            Assert.IsNotNull(navigator);
            Assert.IsTrue(navigator.GetType() == typeof(PocoNavigator));
        }
Beispiel #3
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 StringInterrogator_CreateNavigator_Given_TypeofIPath_Expected_Exception()
        {
            var stringInterrogator = new StringInterrogator();

            stringInterrogator.CreateNavigator(XmlGiven(), typeof(IPath));
        }