- In some cases, I deleted ActiveIssues associated with issues where the problem was supposedly fixed. We'll see.
- In some cases, I deleted test cases entirely, e.g. where the corresponding issue said effectively "we'll live with the behavior" or "another repo is responsible for this now" (paraphrasing), or where the tests were initially added to the repo years ago already disabled and against bug numbers from some old bug database.
- In some cases, I replaced the link with the correct one.
- In some cases, I re-opened closed issues.
* FinalCoreFXRenames
The last of the CoreFX renames.
* Update DirectorySearcher.cs
Fixed typo in DirectorySearcher.cs
* Update TestClasses.SimpleTestClassWithObjectArrays.cs
This fixes the expected value of the tests to runtime, instead of corefx.
* Update PersistedFiles.Names.Unix.cs
Adds a note to not update the corefx reference.
* Initial commit for JSON reference handling / preserve references
* Remove ReferenceHandling.Ignore option
* Code clean-up.
* Remove stale tests.
* Address PR feedback
* Reference handling inline (#1)
* Inline ReferenceHandling logic within main methods.
* remove stale Handle*Ref methods
* Refactor the code for Deserialization
* Create methods to reuse code
* Try to isolate Preserve logic as much as I can
* Replaced Exceptions for ThrowHelper methods
* Remove stale condition on $ref
* Add AggressiveInlining to HandlePropertyNameDefault
* Inline feature code in Serialization
* Fix preserve references for ExtensionData
* Split Reference dictionary into two, for (De)Serialize each.
Add Reference EqualityComparer to Serialize dictionary.
* Do not set PropertyName to s_missingProperty to avoid race condition issues.
* Remove Asserts that compare against an exception message.
* Set preserved array passing setPropertyDirectly = true to avoid issue when enumerable is already initialized.
* Code clean-up.
* Separate write code into WritePreservedObject and WriteReferenceObject
* Address some PR feedback:
* Switched ReferenceResolver to access it through a read-only property that initializes it the first time is tried to be accesed.
* Renamed some methods and properties
* Refactored WriteReference* methods.
* Fixed Exception messages
* Removed literal message comparison on tests.
* * Add round-tripping coverage to suitable unit tests
* Fix issues found with Round-tripping scenarios
* Move DictionaryPropertyIsPreserved to EndProperty() in order to fix issue where two dictionary properties were next to each other and the DictionaryPropertyIsPreserved was not reset.
* Add ReadStackFrame.IsNestedPreservedArray in order to identify preserved arrays nested and prevent using setPropertyDirectly on them.
* Add nullability annotations
* Code clean-up, reword comments and removed unnecesary properties in ReferenceHandling
* Fix issue where an object that tries to map into an enumerable could skip the validation that prevents this.
* Fix issue where the wrong type was passed into the throw helper for nested enumerable in HandleStartObject
* Address PR comments.
* Refactor flags on ReadStackFrame to avoid using unrelated fields for validation.
* Consolidated MetadataPropertyName enum logic on read and write.
* Reuse HandleStartObjectInEnumerable to handle arrays with metadata nested in a Dictionary.
* Refactor code:
* Change ReferenceResolver from class to struct to avoid one allocation.
* Replace propertyName.ToArray() for constant arrays in order to avoid allocation.
* Move some exception logic to the ThrowHelper class.
* * Apply optimizations:
* Use PropertyCacheArray on Values property lookup.
* Make Comparer static field to avoid one allocation at runtime.
* Document reasoning for DefaultReferenceResolver and ReferenreEqualsEqualityComparer
* Address PR comments.
* Addres more PR feedback:
* Add documentation to DefaultReferenceResolver public methods.
* Address PR feedback.
* Adderss more PR suggestions.
* * Move tests to Serialization namespace.
* On $values, set PropertyName on state.Current.JsonPropertyName instead.
* Address more issue numbers in the code
Replaced a bunch of unadorned issue numbers with links, so we know which repo the issue is for. In some cases the repo was named, but for consistency I still replaced it with a link.
In some cases, in particular where the issue had been closed saying effectively "we're not going to do anything here", I removed TODOs and the associated issue numbers.
In a few cases, the TODO and issue number was to say "we should do X when Y is fixed", so I did X since Y was fixed.
* Apply suggestions from code review
Co-Authored-By: Jan Kotas <[email protected]>
* Address PR feedback
* Fix OrderedEnumerable by using MemoryExtensions.Sort
Co-authored-by: Jan Kotas <[email protected]>
* JsonNull return false when comparing against null
I'ved modified JsonNulls comparison methods to return false when
compared against null, the matching test have also been updated
in change
Fix#820
* Updated xml comments to reflect my changes
I have updated the xml comments to reflect the changes
that was made in JsonNull and removed left over comment
in JsonNullTests
* Applied suggested change
Applied the suggested change to correct xml documentation
Co-Authored-By: Ahson Khan <[email protected]>
* Applied Suggested change
Applied the suggested change to correct xml documentation
Co-Authored-By: Ahson Khan <[email protected]>
* netcoreapp -> netcoreapp5.0 in .sln files
* netcoreapp; -> netcoreapp5.0; , netcoreapp- to netcoreapp5.0-
* netcoreapp- -> netcoreapp5.0 in .csproj
* 'netcoreapp -> 'netcoreapp5.0 in .csproj
* done with libraries sub folder
* missed semicolon
* minor changes
* netcoreapp -> netcoreapp5.0 in some extra files
* vNext target variable in configurations.props
* netcoreapp => netcoreapp5/0 in some other .props file
* netcoreapp -> vnext in .csproj
* making the netcorepap framework switch work
* fixing sendToHelix and linux build
* TargetFrameworkVNext -> netcoreappCurrent
* case correct netcoreappcurrent
* fixing send to helix zip path
* netfx -> net472 in .sln
* netfx; -> net472; in .props
* netfx- -> net472- in .props
* netfx - -> net472- in .csproj
* 'netfx-> 'net472 in .csproj
* netfx -> net472 manual change
* fixing ci build for netfx
* Not trying to change the global property
* Fixing build failure due to master changes in net https tests
* adding documentaiton and fixing filtering
* netcoreapp -> netcore5.0 in py file
* changing the path to use netcoreapp5.0 version
* feedback and override corefx path corrected in installers
* remaing netcoreapp5.0 changes done
* netcoreapp-> netcoreapp5.0 after live builds
* net472 -> netframeworkcurrent
* Added tests to cover all branches of JsonNodeOptions.
* Created a test class for JsonNodeOptions and moved relevant tests to it. Also implemented tests for CommentHandling and AllowTrailingCommas options.
* Added tests for default values. Moved JsonNodeOptionsTests to the correct item group.
* Added test to make sure default JsonNodeOptions have equal values to JsonNodeOptions created from default constructor.
* Added missed options arguments.
* Added assertions to make sure default JsonNodeOptions values are as expected.
* Add support for escaped characters in JsonString (for {Try}GetDateTime{Offset})
* Fix the review issues
* Fix a mistake after resolving a merge conflict
* Change `var` to explicit type
This is just prelminary, as all of the docs need to be rationalized with each other now that they're all in the same repo. But it at least keeps most of the links working for now.
* Fix test build break and update common path usages to use property
* Use normalize directory for CommonPath and CommonTestPath
* Update instances of CommonPath and CommonTestPath to not use trailing \
* Test large json serializaiton/deserialization
* Fixing test failure, applying feedback
* Add circular dependency test with large object
* Added test writing an object right at threshold level, removed unnecessary test cases
* Fixing typo
* Using VS generated POCO for test
* Addressing feedback
* Applying feedback
* Applying feedback
* Applying feedback
* Refactored the test Json schema
* Commenting failing case
* Applying feedback
* Applying feedback
* Enabling fixed tests
Commit migrated from https://github.com/dotnet/corefx/commit/20334125a70444b5e8cf35f3f661911cd85a78b5
* work on review comments, documentation changes included
* work on including review comments
* work on including review comments
* StringComparison methods improvements
* work on adressing review comments
* helping comment added
* StringComparison tests improved to check all enum values
* setting CurrentCulture test added
* review comments included
* build fixes
* CurrentCulture test removed
* Address nits and react to recent API changes.
Commit migrated from https://github.com/dotnet/corefx/commit/a0f71fa14ecd17c6aee146b8ef76aaec0dd389ed
* Add test to verify that JsonEncodedText and Utf8JsonWriter use
upper-case hex digits when escaping.
* Add test to verify that JsonEncodedText and Utf8JsonWriter use
upper-case hex digits when escaping.
* Fix spacing issue in expected text.
Commit migrated from https://github.com/dotnet/corefx/commit/6878693e4bdeb509abfdf51ad40a5a1aae46e2e4
* Implemented support for getting Base64 as an equivalent byte array
* New implementation for base-64 support as suggested in review. Added new test cases for it.
* Changed comment
in -> and
Co-Authored-By: Ahson Khan <[email protected]>
* Updated minimum length for TryGetBytesFromBase64 to match minimum length of base-64 string
Co-Authored-By: Günther Foidl <[email protected]>
* Added old Convert.FromBase64String implementation for older platforms. arrayReturnToPool is now cleared before return. Added test cases for edge cases and full branch coverage. Changed magic number to predefined constant.
* Changed catch-all to only catch FormatException. Removed try-finally since it is most likely unnecessary. Now only clears the sliced buffer.
* Changed back to a try-finally solution for readability.
* Using JsonConstants.StackallocThreshold instead of magic number
Co-Authored-By: Ahson Khan <[email protected]>
* Added test to validate TryGetBytesFromBase64(...) gives the corrresulting bytes.
* Allocate to JsonConstants.StackallocThreshold when doing stackalloc
Co-Authored-By: Stephen Toub <[email protected]>
Commit migrated from https://github.com/dotnet/corefx/commit/6a591b2d24869657094816418c46593337550a32
* Pull duplicated code into JsonWriterHelper
* Add helpers for parsing and formatting ISO dates
* Update tests to expect new format
* Use new helpers in JsonString methods
* Rename methods
* Check for valid parse length
* Use AsSpan extension to work around missing implicit operators on netfx
* More netfx workarounds
* Use constant for stackalloc length
* Add back temp span to avoid writing too much when trimming
* Move IsValidDateTimeOffsetParseLength to JsonHelpers
* Always use StackallocThreshold instead of calling GetUtf8ByteCount
* Remove redundant length checks done by IsValidDateTimeOffsetParseLength
* Adapt test pattern from Utf8JsonWriterTests
* Revert "Always use StackallocThreshold instead of calling GetUtf8ByteCount"
This reverts commit dotnet/corefx@0d29b64616.
Commit migrated from https://github.com/dotnet/corefx/commit/21fd4d2a70447064aacb6536278f6e8cc1c9e2d5
* Move using directive within ifdef to make it clear when its used.
* Add more tests for custom text encoder case.
* Fix typo in comment gaurd -> guard
* Fix up the using directives that got removed during merge conflict
resolution.
* Address feedback - fix 0x7F case, rename vectors to be self-documenting.
Commit migrated from https://github.com/dotnet/corefx/commit/62e6ccfa09322db02d6c043226bd382debc915c4