Mocking a Set Method doesn't work
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I want to Mock a set method while conducting unit tests. when I try to mock it, I get the error:
Unrecognized method, property, or field 'set' for class
Any help is appreciated.
The mock is defined as follows:
testCase.assignOutputsWhen(...
withAnyInputs(behaviorObj.set.blablabla),DoNothing);
The Set method is defined as follows:
function set.blablabla(obj)
arguments
end
%"stuf"
end
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Mock Dependencies in Tests in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!