public void IncludesKnownCompatibleFramework() { tool.AddKnownFrameworkShortNames(new[] { "net20" }); var query = tool.GetOrBuildQuery("net35"); var termQueries = GetSupportedFrameworkTermQueries(query); Assert.That(termQueries, Is.EquivalentTo(new[] { new TermQuery(new Term(FrameworkCompatibilityTool.SupportedFrameworksFieldName, "net20")), new TermQuery(new Term(FrameworkCompatibilityTool.SupportedFrameworksFieldName, "net35")) })); }
public void IncludesKnownCompatibleFramework(string knownFrameworkShortName, string projectFrameworkShortName) { tool.AddKnownFrameworkShortNames(new[] { knownFrameworkShortName }); var query = tool.GetOrBuildQuery(projectFrameworkShortName); var termQueries = GetSupportedFrameworkTermQueries(query); Assert.That(termQueries, Is.EquivalentTo(new[] { new TermQuery(new Term(FrameworkCompatibilityTool.SupportedFrameworksFieldName, knownFrameworkShortName)), new TermQuery(new Term(FrameworkCompatibilityTool.SupportedFrameworksFieldName, projectFrameworkShortName)) })); }
public LucenePackage Convert(IPackage package) { var lucenePackage = package as LucenePackage; if (lucenePackage == null) { lucenePackage = new LucenePackage(FileSystem); Convert(package, lucenePackage); } frameworkCompatibilityTool.AddKnownFrameworkShortNames(lucenePackage.SupportedFrameworks); return(lucenePackage); }