You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have got an assert such as XmlAssert.Equal(expected, actual, XmlAssertOptions.IgnoreNamespaces);
if i have xml document like this
<NodeOne>
<DescriptionText>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ullamcorper ut arcu vitae fringilla. Donec et laoreet arcu, ac condimentum lectus. Pellentesque
enim sem, gravida congue placerat eget, iaculis a orci. Nam cursus venenatis turpis vitae accumsan. Vivamus varius orci turpis, in consequat ante consectetur
eu. Integer dictum efficitur varius. Nulla ipsum ligula, molestie id lorem a, pulvinar sollicitudin purus. Ut tempor, lectus et rutrum imperdiet, eros ipsum congue
</DescriptionText>
</NodeOne>
note the indentation.
i then select the DescriptionText node by using linq. This is what i use for my "actual" xml value
I have an expected xml of:
<DescriptionText>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ullamcorper ut arcu vitae fringilla. Donec et laoreet arcu, ac condimentum lectus. Pellentesque
enim sem, gravida congue placerat eget, iaculis a orci. Nam cursus venenatis turpis vitae accumsan. Vivamus varius orci turpis, in consequat ante consectetur
eu. Integer dictum efficitur varius. Nulla ipsum ligula, molestie id lorem a, pulvinar sollicitudin purus. Ut tempor, lectus et rutrum imperdiet, eros ipsum congue
</DescriptionText>
the equality assert fails because the tab indentaton is not the same. instead i have got to have an expected xml of :
<DescriptionText>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ullamcorper ut arcu vitae fringilla. Donec et laoreet arcu, ac condimentum lectus. Pellentesque
enim sem, gravida congue placerat eget, iaculis a orci. Nam cursus venenatis turpis vitae accumsan. Vivamus varius orci turpis, in consequat ante consectetur
eu. Integer dictum efficitur varius. Nulla ipsum ligula, molestie id lorem a, pulvinar sollicitudin purus. Ut tempor, lectus et rutrum imperdiet, eros ipsum congue
</DescriptionText>
is this expected behaviour? Is there a way to ignore the indentation or tabs.
The text was updated successfully, but these errors were encountered:
i have got an assert such as
XmlAssert.Equal(expected, actual, XmlAssertOptions.IgnoreNamespaces);
if i have xml document like this
note the indentation.
i then select the DescriptionText node by using linq. This is what i use for my "actual" xml value
I have an expected xml of:
the equality assert fails because the tab indentaton is not the same. instead i have got to have an expected xml of :
is this expected behaviour? Is there a way to ignore the indentation or tabs.
The text was updated successfully, but these errors were encountered: