-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smocks on mono/xamarin studio throws System.Runtime.Serialization exception #12
Comments
Thanks for reporting! Could you provide the (essentials of the) Furthermore, please check that you are using the latest version of Smocks (0.5.18). What happens if you move |
Person class: public class Person : IAudit
{
#region IAudit implementation
public DateTime CreatedOn { get; set; }
public DateTime AccessedOn { get; set; }
public DateTime ModifiedOn { get; set; }
#endregion
public String FirstName { get; set; }
public String LastName { get; set; }
public int Age { get; set; }
} This test should fail since the DateTime has not been set yet, but this does work in visual studio on windows. I am using the latest Smocks and placing them inside the Smock.Run invocation results in the same outcome. |
Thanks for the details, I'll try to look into it if I can get access to a similar environment to reproduce the issue. What environment do you run the test on? On VS2013 and VS2015 on windows I get a |
VS2015 it works great on Windows (like wise once it was inside the run block.) Xamarin Studio on Mac OS X it does not. I will try Xamarin Studio and Mono on Windows when I get home today. |
Here is a link to the demo code. https://github.com/StummeJ/AOP-Demo/tree/bugs/Smocks12 |
Looks like compiling with mono on windows causes the same exception.
|
This is fixed in Smocks 0.5.22 on nuget. Be aware that I ran into some other mono issues (#14) while fixing this. Please consider mono support highly experimental for now. Thanks for reporting again! |
Thanks for fixing this so quick! |
While trying to run a test using Smocks on Xamarin Studio on Mac OS X a System.Runtime.Serialization exception. Smocks version 0.5.18 nuget package.
The text was updated successfully, but these errors were encountered: