chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
Hi

Up until Typemock 7.0.3 the following construct worked properly:


Isolate.WhenCalled(() => ConfigurationHandler.Instance.WebConfigurationElement.ApplicationVersion).WillReturn(WebConfigurationElement.ApplicationVersions.MATwebRB);


Any idea why in Typemock 7.0.6 this construct generates an error:

*** Faking behavior on struct System.Configuration.SimpleBitVector32 is not supported in the following cases:
1. Faking behavior on more than one struct of the same type.
2. Faking behavior on more than one method on the same struct.

Details see attachment

Regards
Hans

Version 7.0.6 Issue.zip
asked by htschan (3.1k points)

6 Answers

0 votes
Hi,

I'm analyzing the exception. So far I was not able to reproduce it. Do you have a compiling example that reproduces the error?
answered by Elisha (12k points)
0 votes
Hi,
We've prepared two VS2010 solutions, the code is identical, but one solution is linked with Typemock 7.0.3 and the other is linked with Typemock 7.0.6.
See attachment for additional information.

Regards,
Hans

Issue706 lib.zip

Issue706.zip

NoIssue703 lib.zip
answered by htschan (3.1k points)
0 votes
The second part of zip-Files

NoIssue703.zip

Version 7.0.6 Issue.zip
answered by htschan (3.1k points)
0 votes
Hi,

Thanks for the detailed reproduction. I'm analyzing it and I'll update on this thread.

Regards,
Elisha,
Typemock Support
answered by Elisha (12k points)
0 votes
Hi,

We've fixed the error. A patch with the fix can be found here.

I tried it on the reproducing code and it is fixed here. Can you please let me know if the issue is resolved on your end too with the new version?
answered by Elisha (12k points)
0 votes
Hi

We tested the 7.0.7Beta Patch.
All our unit tests pass through successfully.

Thanks.

Kind regards,
Hans Tschan
answered by htschan (3.1k points)
...