public void TryMatch_Extension() { string[] actual; var regex = new Regex("out"); var test = "Testing out tryMatch out"; var expected = new[] { "out" }; Assert.IsTrue( regex.TryMatch(test, out actual) ); CollectionAssert.AreEqual(expected, actual); }