Closed chucker closed 8 months ago
If both languages have KnownForBuilding = .None, then overlap is also .None, but as a result, Match returns MatchType.None, when it should probably be MatchType.Exact.
KnownForBuilding = .None
overlap
.None
Match
MatchType.None
MatchType.Exact
As a result, the below test will fail.
No response
[Theory] [InlineData("SQL", "SQL", MatchType.Exact)] public void TestApplicationsMatch(string thisLanguageName, string thatLanguageName, MatchType expectedMatchType) { ILanguage thisLanguage = LanguagesProvider.Languages.Single(l => l.Name == thisLanguageName); ILanguage thatLanguage = LanguagesProvider.Languages.Single(l => l.Name == thatLanguageName); MatchType matchType = new MetadatumComparisonService(thisLanguage).ApplicationsMatch(thatLanguage); Assert.Equal(expectedMatchType, matchType); }
What happened?
If both languages have
KnownForBuilding = .None
, thenoverlap
is also.None
, but as a result,Match
returnsMatchType.None
, when it should probably beMatchType.Exact
.As a result, the below test will fail.
What browsers are you seeing the problem on?
No response
Relevant log output
Screenshots
No response