- Home /
Can't find Substitute class and Return method
I was following this tutorial. At about 10:30 in the video, they used the Substitute class and Return function. I haven't been able to find either of those things in the documentation. Does anyone know how to fix this?
Please supply videos/links/code. Anything prevalent to your question please.
In my question, the word 'this' is a link to the video.
iirc the Substitute method comes from the NSubstitute library. I don't have time to look into this at the moment, but figured I'd share what I remember from encountering the same thing a while ago in case it help you hunt the answer down.
Does the NSubstitute library can with unity? It looks like the person in the video was writing javascript. Therefore, is it language specific?
Answer by Stevens-R-Miller · Nov 08, 2018 at 07:41 PM
It's part of a stand-in library that lets you test things when you don't have all the other stuff you're not testing (but need for the test) ready. Check it out at the github site, and you might like this video too.
Thank you for your response, it has been most helpful in solving my problem.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
how to restart scane on click (unity2017.4.2f2) 0 Answers
How to render images from JSON in Unity? 1 Answer
Enemy clone not following script 1 Answer