Skip to content

Commit 70526fb

Browse files
committed
Fix RS0030, Use OrdinalIgnoreCase
1 parent 6bb7280 commit 70526fb

File tree

1 file changed

+2
-2
lines changed
  • src/iTextSharp.LGPLv2.Core.FunctionalTests/Issues

1 file changed

+2
-2
lines changed

src/iTextSharp.LGPLv2.Core.FunctionalTests/Issues/Issue95.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ public void Verify_Issue95_XfaForm_SerializeDoc_Does_Not_Add_Xml_Declaration()
3838
// It should not be there, as its presence causes the parsing of the XFA data to fail.
3939
var containsXmlDeclaration = text.IndexOf(
4040
XmlDeclarationFragment,
41-
StringComparison.InvariantCultureIgnoreCase) == 0;
41+
StringComparison.OrdinalIgnoreCase) == 0;
4242

4343
// We should have the root element at the beginning of the serialized text ; this also
4444
// makes sure that we're not mstakenly adding the UTF-8 identifier to the beginning of
4545
// the serialized text
4646
var startsWithRootelement = text.IndexOf(
4747
XmlElementRootFragment,
48-
StringComparison.InvariantCulture) == 0;
48+
StringComparison.Ordinal) == 0;
4949

5050
Assert.IsFalse(containsXmlDeclaration);
5151
Assert.IsTrue(startsWithRootelement);

0 commit comments

Comments
 (0)