public virtual void MatchesIgnoreCase() { CharacterReader r = new CharacterReader("One Two Three"); NUnit.Framework.Assert.IsTrue(r.MatchesIgnoreCase("O")); NUnit.Framework.Assert.IsTrue(r.MatchesIgnoreCase("o")); NUnit.Framework.Assert.IsTrue(r.Matches('O')); NUnit.Framework.Assert.IsFalse(r.Matches('o')); NUnit.Framework.Assert.IsTrue(r.MatchesIgnoreCase("One Two Three")); NUnit.Framework.Assert.IsTrue(r.MatchesIgnoreCase("ONE two THREE")); NUnit.Framework.Assert.IsTrue(r.MatchesIgnoreCase("One")); NUnit.Framework.Assert.IsTrue(r.MatchesIgnoreCase("one")); NUnit.Framework.Assert.AreEqual('O', r.Consume()); NUnit.Framework.Assert.IsFalse(r.MatchesIgnoreCase("One")); NUnit.Framework.Assert.IsTrue(r.MatchesIgnoreCase("NE Two Three")); NUnit.Framework.Assert.IsFalse(r.MatchesIgnoreCase("ne Two Three Four")); NUnit.Framework.Assert.AreEqual("ne Two Three", r.ConsumeToEnd()); NUnit.Framework.Assert.IsFalse(r.MatchesIgnoreCase("ne")); }