AI OnAI Off
Find relies heavily on extension methods so I don't think you can unit test it easily and effectively. I think you could do a wrapper class for search functionality and mock that in your tests instead
Optimizely Find is very hard to write unit tests for. Instead I keep my search logic separate to my mobel builder logic. That way I can test everything around the search query even though I can't test the query itself.
Hello,
I am currently working on mocking optimizely search client interface IClient for my unit tests that are using xunit.
Specfically this statement right here:
I have tried using Moq, and NSubstitute but with I cant seem to mock the statement above.
Anyone have any idea how to mock the above statement?
Any help is appreciated.