Skip to content
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

Changes Add(IExecutionResult) to AddResult for Snapshot tests #5320

Merged
merged 1 commit into from Aug 22, 2022

Conversation

matt-psaltis
Copy link
Contributor

Renames Snapshot Add extension method to AddResult

@CLAassistant
Copy link

CLAassistant commented Aug 20, 2022

CLA assistant check
All committers have signed the CLA.

@matt-psaltis
Copy link
Contributor Author

@michaelstaib @PascalSenn swapping the SnapshotExtensions.Add calls to snapshot.AddResult using method chaining, Rider has applied this not just to this usage but all situations where the static method call can be swapped. Should I wind this back?

var empty = TypeConverterExtensions.Convert<object, Guid>(
DefaultTypeConverter.Default,
null);
var empty = DefaultTypeConverter.Default.Convert<object, Guid>(null);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In unit tests we need to be explicit. So this needs to be reverted.

@@ -11,31 +11,27 @@ public class PagingObjectFieldDescriptorExtensionsTests
public static void ObjectFieldDescriptor_UseOffsetPaging_Descriptor_Is_Null()
{
Assert.Throws<ArgumentNullException>(
() => PagingObjectFieldDescriptorExtensions.UsePaging(
default(IObjectFieldDescriptor)!));
() => default(IObjectFieldDescriptor)!.UsePaging());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same goes here.

@michaelstaib michaelstaib merged commit 7ff557b into main Aug 22, 2022
@michaelstaib michaelstaib deleted the mp/snapshot-addresult branch August 22, 2022 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants