Пример #1
0
        public void TestGetRootNode_When_LegalXmlButIncorrectRootElement()
        {
            Action act = () => _xmlConversionsReader.GetRootNode(ConversionXmlHelper.LegalXmlButIncorrectRootElement());

            act.ShouldThrow <XmlException>().WithMessage("Can't find root element 'TypeConversions'");
        }