Method VerifyExplanation
VerifyExplanation(String, Int32, Single, Boolean, Explanation)
Assert that an explanation has the expected score, and optionally that its sub-details max/sum/factor match to that score.
Declaration
public static void VerifyExplanation(string q, int doc, float score, bool deep, Explanation expl)
Parameters
Type | Name | Description |
---|---|---|
System.String | q | String representation of the query for assertion messages |
System.Int32 | doc | Document ID for assertion messages |
System.Single | score | Real score value of doc with query q |
System.Boolean | deep | indicates whether a deep comparison of sub-Explanation details should be executed |
Explanation | expl | The Explanation to match against score |