Hey guys,
Say I have this piece of code ( class "AnExample"):
public class AnExample { private string SomePrivateField; private int SomeOtherPrivateField= 0; public ClassUnderTest() { SomePrivateField = "Blablabla"; } }
public class AnExample
{
private string SomePrivateField;
private int SomeOtherPrivateField= 0;
public ClassUnderTest()
SomePrivateField = "Blablabla";
}
I want to fake the instance of "SomePrivateField" and make it return "Hello!" rather than "Blablabla". How do I do it?
When I try with Isolate.Fake.Instance<AnExample> the test fails with the message that the actual output is "Blablabla" and not "Hello!". Any insights?