Hi all,
I am just starting with unit test my code. This article i used to setup my base: Unit Testing Umbraco with Umbraco Context Mock by Gary Devenay | Issue 26 of Skrift Magazine
The problem is i use the AncestorOrSelf method and that method is not mockable.
What i can do is make a libaryclass that has a public method and calls the AncestorOrself method.
But that feels that i just move the problem.
Hope you guys can help me out
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/95619-what-are-my-options-to-mock-ancestororself-method