fluentasserts.core.operations.arrayEqual 12/12(100%) line coverage

      
10
20
30
40
50
60
70
80
90
100
110
120
130
14195
150
16195
170
18195
1989
200
210
22195
23124
240
250
2671
270
2871
2922
300
3149
3249
330
340
3571
360
module fluentasserts.core.operations.arrayEqual; import fluentasserts.core.results; import fluentasserts.core.evaluation; import fluentasserts.core.lifecycle; version(unittest) { import fluentasserts.core.expect; } /// IResult[] arrayEqual(ref Evaluation evaluation) @safe nothrow { evaluation.message.addText("."); auto result = evaluation.currentValue.strValue == evaluation.expectedValue.strValue; if(evaluation.isNegated) { result = !result; } if(result) { return []; } IResult[] results = []; if(evaluation.isNegated) { try results ~= new ExpectedActualResult("not " ~ evaluation.expectedValue.strValue, evaluation.currentValue.strValue); catch(Exception) {} } else { try results ~= new DiffResult(evaluation.expectedValue.strValue, evaluation.currentValue.strValue); catch(Exception) {} try results ~= new ExpectedActualResult(evaluation.expectedValue.strValue, evaluation.currentValue.strValue); catch(Exception) {} } return results; }