Here is the error: "Cannot generate shim for System.Data.SqlClient.SqlDataReaderSmi: type is now visible to exported or assembly (System.Data.4.0.0.0.Fakes).
Here is my code:
<Fakes xmlns="http://schemas.microsoft.com/fakes/2011/" Diagnostic="true">
<Assembly Name="System.Data" Version="4.0.0.0"/>
<StubGeneration>
<Clear/>
</StubGeneration>
<ShimGeneration>
<Clear/>
<Remove FullName="System.Data.SqlClient"/>
<!--Added Classes-->
<Add FullName="System.Data.SqlClient.SqlCommand!"/>
<Add FullName="System.Data.SqlClient.SqlConnection!"/>
<Add FullName="System.Data.SqlClient.SqlDataRead"/>
</ShimGeneration>
</Fakes>
I mock the SqlDataReader and need to use Fakes. What am I doing wrong?
Aucun commentaire:
Enregistrer un commentaire