Mocking a Set Method doesn't work
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Mock Dependencies in Tests에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!