diff --git a/source/fluentasserts/core/evaluation.d b/source/fluentasserts/core/evaluation.d index c504665..7829aa8 100644 --- a/source/fluentasserts/core/evaluation.d +++ b/source/fluentasserts/core/evaluation.d @@ -334,7 +334,6 @@ class ArrayEquable(U: T[], T) : EquableValue { } @trusted EquableValue[] toArray() { - try { "array.toArray".writeln; } catch(Exception) {} static if(is(T == void)) { return []; } else { diff --git a/source/fluentasserts/core/operations/registry.d b/source/fluentasserts/core/operations/registry.d index 7fadbc4..2a9968c 100644 --- a/source/fluentasserts/core/operations/registry.d +++ b/source/fluentasserts/core/operations/registry.d @@ -74,6 +74,10 @@ class Registry { /// IResult[] handle(ref Evaluation evaluation) @safe nothrow { + if(evaluation.operationName == "" || evaluation.operationName == "to" || evaluation.operationName == "should") { + return []; + } + auto operation = this.get( evaluation.currentValue.typeName, evaluation.expectedValue.typeName,