public void TestHasClassificationMatchAndNameMismatch_NameMismatchClassificationPartialOtherStartsWith() { List <MatchInfo> testDisposiions = new List <MatchInfo>(); testDisposiions.Add(new MatchInfo() { Location = MatchLocation.Name, Kind = MatchKind.Mismatch }); testDisposiions.Add(new MatchInfo() { Location = MatchLocation.Classification, Kind = MatchKind.Partial }); testDisposiions.Add(new MatchInfo() { Location = MatchLocation.OtherParameter, Kind = MatchKind.SingleStartsWith }); ITemplateMatchInfo testTemplate = new TemplateMatchInfo(new TemplateInfo() { Name = "Template1", Identity = "Template1", GroupIdentity = "TestGroup" }, testDisposiions); Assert.True(testTemplate.HasClassificationMatchAndNameMismatch()); }
public void TestHasClassificationMatchAndNameMismatch_NameMismatchClassificationPartialLanguageMismatch() { List <MatchInfo> testDisposiions = new List <MatchInfo>(); testDisposiions.Add(new MatchInfo() { Location = MatchLocation.Name, Kind = MatchKind.Mismatch }); testDisposiions.Add(new MatchInfo() { Location = MatchLocation.Classification, Kind = MatchKind.Partial }); testDisposiions.Add(new MatchInfo() { Location = MatchLocation.Language, Kind = MatchKind.Mismatch }); ITemplateMatchInfo testTemplate = new TemplateMatchInfo(new TemplateInfo() { Name = "Template1", Identity = "Template1", GroupIdentity = "TestGroup" }, testDisposiions); Assert.False(testTemplate.HasClassificationMatchAndNameMismatch()); }
public void TestHasClassificationMatchAndNameMismatch_ShortNameExactAndClassificationPartial() { List <MatchInfo> testDispositions = new List <MatchInfo>(); testDispositions.Add(new MatchInfo() { Location = MatchLocation.ShortName, Kind = MatchKind.Exact }); testDispositions.Add(new MatchInfo() { Location = MatchLocation.Classification, Kind = MatchKind.Partial }); ITemplateMatchInfo testTemplate = new TemplateMatchInfo(new MockTemplateInfo("Template1", groupIdentity: "TestGroup"), testDispositions); Assert.False(testTemplate.HasClassificationMatchAndNameMismatch()); }
public void TestHasClassificationMatchAndNameMismatch_ShortNameMismatchAndClassificationExact() { List <MatchInfo> testDisposiions = new List <MatchInfo>(); testDisposiions.Add(new MatchInfo() { Location = MatchLocation.ShortName, Kind = MatchKind.Mismatch }); testDisposiions.Add(new MatchInfo() { Location = MatchLocation.Classification, Kind = MatchKind.Exact }); ITemplateMatchInfo testTemplate = new TemplateMatchInfo(new TemplateInfo() { Name = "Template1", Identity = "Template1", GroupIdentity = "TestGroup" }, testDisposiions); Assert.True(testTemplate.HasClassificationMatchAndNameMismatch()); }