Setting a readonly property of a class for unit testing
<p>I have an interface like this</p>

<pre><code>public interface IConnection
{
    Strategy Gc { get; }

    bool IsConnected();

    bool Connect();
}
</code></pre>

<p>I want to unit test methods of a class that uses this interface. Now I want to set Gc but it happens to be readonly. Is there a way to set Gc field without making changes to this interface class?
I am using MS fakes and Nsubstitute for unit testing. However, apparently none provides a solution. <code>PrivateObject</code> does not work either.</p>

<p>Changing Interface is not an option. Suggest better solutions.</p>