erikdoe / ocmock

Mock objects for Objective-C
http://ocmock.org
Apache License 2.0
2.16k stars 606 forks source link

ReadOnly Mock #520

Closed moneyYouCai closed 2 years ago

moneyYouCai commented 2 years ago

How to mock a ReadOnly property and assign a value to it For example- @property (NS_NONATOMIC_IOSONLY, readonly) UNAuthorizationStatus authorizationStatus;

erikdoe commented 2 years ago

The best option to get help with using OCMock is to ask a question on StackOverflow using the ocmock tag.

Please open issues on Github only when you suspect that you have encountered a bug in OCMock. If you have a question about OCMock or you have an issue with using it in your project, please ask on StackOverflow.

https://ocmock.org/support/