mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-23 17:28:55 +02:00
Rewrite some unit-integration-tests to unit-tests (#206)
This commit is contained in:
@@ -58,41 +58,41 @@
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line18"></a><code>18</code></td><td></td><td class="lightgray"><code> /// <value></code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line19"></a><code>19</code></td><td></td><td class="lightgray"><code> /// The request matchers.</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line20"></a><code>20</code></td><td></td><td class="lightgray"><code> /// </value></code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '691', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">691</td><td class="rightmargin right"><a id="file0_line21"></a><code>21</code></td><td></td><td class="lightgreen"><code> private IEnumerable<IRequestMatcher> RequestMatchers { get; }</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '657', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">657</td><td class="rightmargin right"><a id="file0_line21"></a><code>21</code></td><td></td><td class="lightgreen"><code> private IEnumerable<IRequestMatcher> RequestMatchers { get; }</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line22"></a><code>22</code></td><td></td><td class="lightgray"><code></code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line23"></a><code>23</code></td><td></td><td class="lightgray"><code> /// <summary></code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line24"></a><code>24</code></td><td></td><td class="lightgray"><code> /// Initializes a new instance of the <see cref="RequestMessageCompositeMatcher"/> class.</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line25"></a><code>25</code></td><td></td><td class="lightgray"><code> /// </summary></code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line26"></a><code>26</code></td><td></td><td class="lightgray"><code> /// <param name="requestMatchers">The request matchers.</param></code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line27"></a><code>27</code></td><td></td><td class="lightgray"><code> /// <param name="type">The CompositeMatcherType type (Defaults to 'And')</param></code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '329', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">329</td><td class="rightmargin right"><a id="file0_line28"></a><code>28</code></td><td></td><td class="lightgreen"><code> protected RequestMessageCompositeMatcher([NotNull] IEnumerable<IRequestMatcher> requestMatchers, CompositeMatche</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '329', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">329</td><td class="rightmargin right"><a id="file0_line29"></a><code>29</code></td><td></td><td class="lightgreen"><code> {</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '329', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">329</td><td class="rightmargin right"><a id="file0_line30"></a><code>30</code></td><td></td><td class="lightgreen"><code> Check.NotNull(requestMatchers, nameof(requestMatchers));</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '315', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">315</td><td class="rightmargin right"><a id="file0_line28"></a><code>28</code></td><td></td><td class="lightgreen"><code> protected RequestMessageCompositeMatcher([NotNull] IEnumerable<IRequestMatcher> requestMatchers, CompositeMatche</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '315', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">315</td><td class="rightmargin right"><a id="file0_line29"></a><code>29</code></td><td></td><td class="lightgreen"><code> {</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '315', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">315</td><td class="rightmargin right"><a id="file0_line30"></a><code>30</code></td><td></td><td class="lightgreen"><code> Check.NotNull(requestMatchers, nameof(requestMatchers));</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line31"></a><code>31</code></td><td></td><td class="lightgray"><code></code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '329', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">329</td><td class="rightmargin right"><a id="file0_line32"></a><code>32</code></td><td></td><td class="lightgreen"><code> _type = type;</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '329', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">329</td><td class="rightmargin right"><a id="file0_line33"></a><code>33</code></td><td></td><td class="lightgreen"><code> RequestMatchers = requestMatchers;</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '329', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">329</td><td class="rightmargin right"><a id="file0_line34"></a><code>34</code></td><td></td><td class="lightgreen"><code> }</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '315', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">315</td><td class="rightmargin right"><a id="file0_line32"></a><code>32</code></td><td></td><td class="lightgreen"><code> _type = type;</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '315', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">315</td><td class="rightmargin right"><a id="file0_line33"></a><code>33</code></td><td></td><td class="lightgreen"><code> RequestMatchers = requestMatchers;</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '315', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">315</td><td class="rightmargin right"><a id="file0_line34"></a><code>34</code></td><td></td><td class="lightgreen"><code> }</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line35"></a><code>35</code></td><td></td><td class="lightgray"><code></code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line36"></a><code>36</code></td><td></td><td class="lightgray"><code> /// <inheritdoc cref="IRequestMatcher.GetMatchingScore"/></code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line37"></a><code>37</code></td><td></td><td class="lightgray"><code> public double GetMatchingScore(RequestMessage requestMessage, RequestMatchResult requestMatchResult)</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '347', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">347</td><td class="rightmargin right"><a id="file0_line38"></a><code>38</code></td><td></td><td class="lightgreen"><code> {</code></td></tr>
|
||||
<tr title="2 of 2 branches are covered" data-coverage="{'AllTestMethods': {'VC': '347', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">347</td><td class="rightmargin right"><a id="file0_line39"></a><code>39</code></td><td class="percentagebar100"><i class="icon-fork"></i></td><td class="lightgreen"><code> if (!RequestMatchers.Any())</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '3', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">3</td><td class="rightmargin right"><a id="file0_line40"></a><code>40</code></td><td></td><td class="lightgreen"><code> {</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '3', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">3</td><td class="rightmargin right"><a id="file0_line41"></a><code>41</code></td><td></td><td class="lightgreen"><code> return MatchScores.Mismatch;</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '329', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">329</td><td class="rightmargin right"><a id="file0_line38"></a><code>38</code></td><td></td><td class="lightgreen"><code> {</code></td></tr>
|
||||
<tr title="2 of 2 branches are covered" data-coverage="{'AllTestMethods': {'VC': '329', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">329</td><td class="rightmargin right"><a id="file0_line39"></a><code>39</code></td><td class="percentagebar100"><i class="icon-fork"></i></td><td class="lightgreen"><code> if (!RequestMatchers.Any())</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '1', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">1</td><td class="rightmargin right"><a id="file0_line40"></a><code>40</code></td><td></td><td class="lightgreen"><code> {</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '1', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">1</td><td class="rightmargin right"><a id="file0_line41"></a><code>41</code></td><td></td><td class="lightgreen"><code> return MatchScores.Mismatch;</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line42"></a><code>42</code></td><td></td><td class="lightgray"><code> }</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line43"></a><code>43</code></td><td></td><td class="lightgray"><code></code></td></tr>
|
||||
<tr title="2 of 2 branches are covered" data-coverage="{'AllTestMethods': {'VC': '344', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">344</td><td class="rightmargin right"><a id="file0_line44"></a><code>44</code></td><td class="percentagebar100"><i class="icon-fork"></i></td><td class="lightgreen"><code> if (_type == CompositeMatcherType.And)</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '343', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">343</td><td class="rightmargin right"><a id="file0_line45"></a><code>45</code></td><td></td><td class="lightgreen"><code> {</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '1024', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">1024</td><td class="rightmargin right"><a id="file0_line46"></a><code>46</code></td><td></td><td class="lightgreen"><code> return RequestMatchers.Average(requestMatcher => requestMatcher.GetMatchingScore(requestMessage, request</code></td></tr>
|
||||
<tr title="2 of 2 branches are covered" data-coverage="{'AllTestMethods': {'VC': '328', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">328</td><td class="rightmargin right"><a id="file0_line44"></a><code>44</code></td><td class="percentagebar100"><i class="icon-fork"></i></td><td class="lightgreen"><code> if (_type == CompositeMatcherType.And)</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '327', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">327</td><td class="rightmargin right"><a id="file0_line45"></a><code>45</code></td><td></td><td class="lightgreen"><code> {</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '978', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">978</td><td class="rightmargin right"><a id="file0_line46"></a><code>46</code></td><td></td><td class="lightgreen"><code> return RequestMatchers.Average(requestMatcher => requestMatcher.GetMatchingScore(requestMessage, request</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line47"></a><code>47</code></td><td></td><td class="lightgray"><code> }</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line48"></a><code>48</code></td><td></td><td class="lightgray"><code></code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '3', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">3</td><td class="rightmargin right"><a id="file0_line49"></a><code>49</code></td><td></td><td class="lightgreen"><code> return RequestMatchers.Max(requestMatcher => requestMatcher.GetMatchingScore(requestMessage, requestMatchRes</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '347', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">347</td><td class="rightmargin right"><a id="file0_line50"></a><code>50</code></td><td></td><td class="lightgreen"><code> }</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '329', 'LVS': 'green'}}"><td class="green"> </td><td class="leftmargin rightmargin right">329</td><td class="rightmargin right"><a id="file0_line50"></a><code>50</code></td><td></td><td class="lightgreen"><code> }</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line51"></a><code>51</code></td><td></td><td class="lightgray"><code> }</code></td></tr>
|
||||
<tr data-coverage="{'AllTestMethods': {'VC': '', 'LVS': 'gray'}}"><td class="gray"> </td><td class="leftmargin rightmargin right"></td><td class="rightmargin right"><a id="file0_line52"></a><code>52</code></td><td></td><td class="lightgray"><code>}</code></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="footer">Generated by: ReportGenerator 3.1.2.0<br />2018-09-21 - 14:00:16<br /><a href="https://github.com/danielpalme/ReportGenerator">GitHub</a> | <a href="http://www.palmmedia.de">www.palmmedia.de</a></div></div>
|
||||
<div class="footer">Generated by: ReportGenerator 3.1.2.0<br />2018-09-26 - 11:51:45<br /><a href="https://github.com/danielpalme/ReportGenerator">GitHub</a> | <a href="http://www.palmmedia.de">www.palmmedia.de</a></div></div>
|
||||
<div class="containerright">
|
||||
<div class="containerrightfixed">
|
||||
<h1>Methods/Properties</h1>
|
||||
|
||||
Reference in New Issue
Block a user