Exemplo n.º 1
0
        private static bool compare(XElement expected, IElementNavigator actual)
        {
            var type = expected.Attribute("type").Value;
            var tp   = (IElementNavigator)actual;

            Assert.True(type == tp.TypeName, "incorrect output type");

            if (expected.IsEmpty)
            {
                return(true);                       // we are not checking the value
            }
            var value = expected.Value;

            Assert.True(value.Equals(actual.ToStringRepresentation()), "incorrect output value");

            return(true);
        }