# Summary

Class: | WireMock.Matchers.MatchBehaviourHelper
Assembly: | WireMock.Net
File(s): | C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\MatchBehaviourHelper.cs
Covered lines: | 6
Uncovered lines: | 0
Coverable lines: | 6
Total lines: | 27
Line coverage: | 100%
Branch coverage: | 100%

# Metrics

Method | Cyclomatic complexity | NPath complexity | Sequence coverage | Branch coverage
--- | --- | --- | --- | ---
Convert(...) | 0 | 0 | 1 | 1

# File(s)

## C:\Users\azureuser\Documents\Github\WireMock.Net\src\WireMock.Net\Matchers\MatchBehaviourHelper.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `namespace WireMock.Matchers`
|  | `2` |  | `{`
|  | `3` |  | `internal static class MatchBehaviourHelper`
|  | `4` |  | `{`
|  | `5` |  | `/// <summary>`
|  | `6` |  | `/// Converts the specified match behaviour and match value to a new match value.`
|  | `7` |  | `///`
|  | `8` |  | `/// if AcceptOnMatch --> return match (default)`
|  | `9` |  | `/// if RejectOnMatch and match = 0.0 --> return 1.0`
|  | `10` |  | `/// if RejectOnMatch and match = 0.? --> return 0.0`
|  | `11` |  | `/// if RejectOnMatch and match = 1.0 --> return 0.0`
|  | `12` |  | `/// </summary>`
|  | `13` |  | `///`
|  | `14` |  | `/// <param name="matchBehaviour">The match behaviour.</param>`
|  | `15` |  | `/// <param name="match">The match.</param>`
|  | `16` |  | `/// <returns>match value</returns>`
|  | `17` |  | `internal static double Convert(MatchBehaviour matchBehaviour, double match)`
| 788 | `18` |  | `{`
| 788 | `19` |  | `if (matchBehaviour == MatchBehaviour.AcceptOnMatch)`
| 770 | `20` |  | `{`
| 770 | `21` |  | `return match;`
|  | `22` |  | `}`
|  | `23` |  | ``
| 18 | `24` |  | `return match <= MatchScores.Tolerance ? MatchScores.Perfect : MatchScores.Mismatch;`
| 788 | `25` |  | `}`
|  | `26` |  | `}`
|  | `27` |  | `}`

# Methods/Properties

Convert(WireMock.Matchers.MatchBehaviour,System.Double)