필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Run tests for methods that are not static

조회 수: 1 (최근 30일)
Claudia
Claudia 2023년 2월 8일
마감: Claudia 2023년 2월 9일
I have an algorithm written using OOP, therefore I have different Classes and methods for each of them.
I want to create an Unit Test for a method that is not static.
When I run the test for that specific method I got an error that the unit test cannot be executed for a method that is not static.
Can somebody help me?
  댓글 수: 1
Steven Lord
Steven Lord 2023년 2월 8일
I know for a fact that it is possible to unit test class methods (both Static and non-Static.)
Can you show a simple example of the class you're trying to test and one of your test methods that attempts to test it? Including the full and exact text of the error message you receive will also be useful, as the exact wording may suggest the cause of the error.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by