Hi,
when executing the following
[TestFixture]
public class ClassName2
{
[Test]
public void MethodName()
{
className1 className1=new className1();
ObjectState objectState=new ObjectState(className1);
objectState.ResetState();
}
}
public class className1
{
public const int i = 0;
}
i get System.FieldAccessException
Message: Cannot set a final field.
i suppose that the correct way is not to attemp to reset the value of a constant or a readonly var