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

Remove PureAttribute from non pure Methods #55

Closed
wants to merge 122 commits into from

Conversation

binaryevents
Copy link

Pure methods do not have side effects. Changing the IgnoredProperty list of ComparisonBuilder inside
CompareSyntax is an side effect since it is changing non-local resource.

Thank you for the great tool :-)

James Foster and others added 27 commits December 7, 2018 02:25
…jamesfoster#34)

* Add net461 target to work around ValueTuple missing method exceptions

See dotnet/standard#567 for context here.
I ran into this while using `SetComparison.Compare(...)` which is all public DeepEquals API. This manifests itself like so:
```c#
	[{System.MissingMethodException}: 'Method not found: 'System.ValueTuple`2<DeepEqual.ComparisonResult,DeepEqual.IComparisonContext> DeepEqual.SetComparison.Compare(DeepEqual.IComparisonContext, System.Object, System.Object)'.']
```
* NaN handling

* Update FloatComparisonTests.cs

Revert loss of alignment.

* Update FloatComparison.cs

Fix indentation after file scoped namespaces

Co-authored-by: silver-bytes <silver-bytes@outlook.com>
Co-authored-by: James Foster <james.mdb@gmail.com>
…amesfoster#49)

* Treat value types containing reference types as reference types

Co-authored-by: James Foster <james.mdb@gmail.com>
Include Readme.md in Nuget package
Add link to Nuget package
Pure methods do not have side effects. Changing the
IgnoredProperty list of ComparisonBuilder inside
CompareSyntax is an side effect since it is changing
non-local resource.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants