-
Notifications
You must be signed in to change notification settings - Fork 76
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
DateTime.Now returning incorrect value #38
Comments
You're mocking Console.WriteLine(string). However you're providing a DateTime to the Console.WriteLine class. |
This is a near direct copy of the README example on the primary page .. According to that:
Even though it is within my PoseContext.Isolate() the string writing is working as expected. However, the shim for the DateTime is returning a junk date, rather than the expected "4/4/04 12:00:00 AM" |
what happens if you construct the datetime in the shim? I think there may be a memory access issue when you use a variable from outside a shim. |
Release v2.0 to NuGet Version 2.0 supports the following targets: * .NET Standard 2.0 * .NET Core 2.0 * .NET Core 3.0 * .NET Framework 4.8 * .NET 7 * .NET 8 Version 2.0 fixes the following issues: * tonerdo/pose#17 * tonerdo/pose#37 * tonerdo/pose#38 * tonerdo/pose#41 * tonerdo/pose#47 * tonerdo/pose#49 * tonerdo/pose#60 * tonerdo/pose#67 * tonerdo/pose#68 * tonerdo/pose#70 * tonerdo/pose#71 * tonerdo/pose#72 * tonerdo/pose#75 * tonerdo/pose#79
Test is returning: 4/18/D1935668524 3:40:45 AM
The text was updated successfully, but these errors were encountered: