Beispiel #1
0
        public void GetReferencesReturnsCorrectResultForStatMatchersName(string referenceName)
        {
            var sut      = new ReferenceService(DefaultReferencedMatchersList, DefaultStatMatchersList);
            var expected = DefaultStatMatchersList
                           .Where(r => r.ReferenceNames.Contains(referenceName))
                           .SelectMany(r => r.Data.Select(d => d.Regex));

            CollectionAssert.AreEqual(expected, sut.GetRegexes(referenceName));
        }
Beispiel #2
0
        public void GetReferencesReturnsEmptyEnumerableIfReferenceNameIsUnknown(string referenceName)
        {
            var sut = new ReferenceService(DefaultReferencedMatchersList, DefaultStatMatchersList);

            CollectionAssert.IsEmpty(sut.GetRegexes(referenceName));
        }