We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[Fact] public void Deserialize_CorrectlyDeserializes_NullableDateTime() { var value = DateTime.Now; var serializedData = new InvocationData( typeof(InvocationDataFacts).AssemblyQualifiedName, nameof(NullableDateTimeMethod), JobHelper.ToJson(new[] { typeof(DateTime?) }), JobHelper.ToJson(new[] { value.ToString("o", CultureInfo.InvariantCulture) })); var job = serializedData.Deserialize(); // throws Assert.Equal(value, job.Args[0]); }
or even simpler:
[Fact] public void Deserialize_CorrectlyDeserializes_NullableDateTime() { var value = DateTime.Now; var job = Job.FromExpression(() => NullableDateTimeMethod(value)); var invocationData = InvocationData.Serialize(job); var job2 = invocationData.Deserialize(); // throws Assert.Equal(value, job2.Args[0]); }
The text was updated successfully, but these errors were encountered:
Was just working on DateTime for #971 , might as well through this fix in as well.
Sorry, something went wrong.
Adding tests for nullable datetime and fixing deserialize to match fo…
bc46b54
…r DateTime? type as well as DateTime, fix for HangfireIO#972.
106dd14
No branches or pull requests
or even simpler:
The text was updated successfully, but these errors were encountered: