Пример #1
0
        public void EmptyMatchDisposition_ReportsCorrectly()
        {
            ITemplateInfo      templateInfo      = new MockTemplateInfo();
            ITemplateMatchInfo templateMatchInfo = new TemplateMatchInfo(templateInfo);

            Assert.False(WellKnownSearchFilters.MatchesAllCriteria(templateMatchInfo));
            Assert.False(WellKnownSearchFilters.MatchesAtLeastOneCriteria(templateMatchInfo));
            Assert.Empty(templateMatchInfo.GetInvalidParameterNames());
            Assert.Equal(0, templateMatchInfo.GetValidTemplateParameters().Count);
        }
        public void EmptyMatchDisposition_ReportsCorrectly()
        {
            ITemplateInfo      templateInfo      = new TemplateInfo();
            ITemplateMatchInfo TemplateMatchInfo = new TemplateMatchInfo(templateInfo);

            Assert.False(TemplateMatchInfo.IsMatch);
            Assert.False(TemplateMatchInfo.IsMatchExceptContext());
            Assert.False(TemplateMatchInfo.IsPartialMatch);
            Assert.False(TemplateMatchInfo.IsPartialMatchExceptContext());
            Assert.False(TemplateMatchInfo.IsInvokableMatch());
            Assert.False(TemplateMatchInfo.HasAmbiguousParameterValueMatch());
            Assert.False(TemplateMatchInfo.HasParameterMismatch());
            Assert.False(TemplateMatchInfo.HasParseError());
            Assert.Equal(0, TemplateMatchInfo.GetInvalidParameterNames().Count);
            Assert.Equal(0, TemplateMatchInfo.GetValidTemplateParameters().Count);
        }