-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat: support .net 6 DateOnly TimeOnly structs #84
base: master
Are you sure you want to change the base?
feat: support .net 6 DateOnly TimeOnly structs #84
Conversation
entity2.Name.Should().Be(entity1.Name); | ||
entity2.DeprecationDate.Should().BeCloseTo(entity1.DeprecationDate, 500); | ||
entity2.Name.Should().Be(entity1.Name); | ||
entity2.DeprecationDate.Should().BeCloseTo(entity1.DeprecationDate, TimeSpan.FromMilliseconds(500)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new fluent assertion syntax
@@ -35,7 +35,7 @@ public void TestAutoFaker() | |||
}, | |||
options => options | |||
.Using<string>(context => context.Subject.Should().NotBeNull()) | |||
.When(info => info.SelectedMemberPath == "Status") | |||
.When(info => info.Path.Contains("Status")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new fluent assertion syntax
@@ -11,7 +11,7 @@ | |||
|
|||
|
|||
<ItemGroup> | |||
<PackageReference Include="FluentAssertions" Version="5.10.3" /> | |||
<PackageReference Include="FluentAssertions" Version="6.6.0" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed to update FA to accommodate the dateonly timeonly handling
this looks like a great feature! polite bump @nickdodd79 |
I don't think he's maintaining the lib anymore. I made a fork that can handle this if you want to use it. |
fixes #76
tried to follow your pattern throughout and included a test for the new type. I did have to do some minor update fluent assertion updates as well.
let me know if you have any questions or concerns!