public void GetMatches_returns_empty_list_for_null_input()
        {
            // arrange
            string input = null;
            var regex = new Regex();

            // act
            var matches = regex.GetMatches(input, "some pattern");

            // assert
            Assert.That(matches.Count, Is.EqualTo(0));
        }
        public void GetMatches_returns_empty_list_for_no_match()
        {
            // arrange
            var input = "abcdefg";
            var pattern = "zzz";
            var regex = new Regex();

            // act
            var matches = regex.GetMatches(input, pattern);

            // assert
            Assert.That(matches.Count, Is.EqualTo(0));
        }
        public void GetMatches_returns_correct_list_for_two_matches()
        {
            // arrange
            var input = "abcdefg zzz asdfds zzz werewr";
            var pattern = "zzz";
            var regex = new Regex();

            // act
            var matches = regex.GetMatches(input, pattern);

            // assert
            Assert.That(matches.Count, Is.EqualTo(2));
            Assert.That(matches.First(), Is.EqualTo("zzz"));
        }