1
0
mirror of https://github.com/chylex/.NET-Community-Toolkit.git synced 2024-09-21 03:42:50 +02:00
Commit Graph

1970 Commits

Author SHA1 Message Date
Sergio Pedri
a298ad5c4b Added tests for GetOrAdd with encoding 2020-07-08 12:08:11 +02:00
Sergio Pedri
b8398019d3 Added GetOrAdd(ReadOnlySpan<byte>, Encoding) overload 2020-07-08 12:03:51 +02:00
Sergio Pedri
75482a142b Added unit tests for GetOrAdd(string) overload 2020-07-08 02:01:55 +02:00
Sergio Pedri
33dda8b4e2 Minor code refactoring 2020-07-08 01:58:13 +02:00
Sergio Pedri
8c6e9295de Minor tweaks to unit tests 2020-07-08 01:52:54 +02:00
Sergio Pedri
6c91cc70ed Added GetOrAdd(string) overload 2020-07-08 01:51:04 +02:00
Sergio Pedri
e4c7d32ccb Fixed unit tests on UWP 2020-07-08 01:23:50 +02:00
Sergio Pedri
5ab9e1d73b Added uni tests for StringPool.Add and TryGet 2020-07-08 01:15:56 +02:00
Sergio Pedri
29e32e39f1 Minor code refactoring 2020-07-08 01:08:32 +02:00
Sergio Pedri
9de7a12fcc Added StringPool.Add(string) method 2020-07-08 00:56:03 +02:00
Sergio Pedri
aabd6d2fd6 Switched Bucket type to a struct 2020-07-08 00:37:04 +02:00
Sergio Pedri
5f858d4d74 Fixed build errors on UWP (string -> ReadOnlySpan<T>) 2020-07-07 22:58:32 +02:00
Sergio Pedri
a9799cb310 Added StringPool.TryGet API 2020-07-07 22:48:00 +02:00
Sergio Pedri
c6e0859b66 Minor code refactoring 2020-07-07 22:42:32 +02:00
Sergio Pedri
d050c5c128 Added StringPool tests 2020-07-07 20:46:48 +02:00
Sergio Pedri
abb5c8e05f Fixed input checks 2020-07-07 20:46:33 +02:00
Sergio Pedri
4068797fea Added StringPool default constructor, input checks 2020-07-07 20:41:33 +02:00
Sergio Pedri
0128201ce1 Added StringPool type 2020-07-07 20:25:16 +02:00
Sergio Pedri
9cc673883f Added explicit unchecked for clarity 2020-07-05 16:44:42 +02:00
Sergio Pedri
fe60de695d Improved codegen for ReadOnlySpanExtensions.DangerousGetLookupReferenceAt 2020-07-05 16:03:17 +02:00
Vincent Gromfeld
15c0947426 merge from master 2020-07-02 10:55:16 +02:00
Sergio Pedri
5b5ea1c74f Fixed a bug in the unit tests 2020-07-01 16:01:25 +02:00
Sergio Pedri
d8d7e80fe9 Added GetResponsesAsync API to AsyncCollectionRequestMessage<T> 2020-07-01 13:06:57 +02:00
Sergio Pedri
24c30e22e9 Minor tweaks to AsyncCollectionRequestMessage<T> 2020-07-01 12:57:09 +02:00
Sergio Pedri
d4ff8519d9 Updated Task<T>.ResultOrDefault<T> on .NET Standard 2.1 2020-06-28 14:05:40 +02:00
Sergio Pedri
862bdf5310 Minor code refactoring 2020-06-28 13:41:24 +02:00
Sergio Pedri
265857c513 Minor code style tweaks 2020-06-28 13:36:14 +02:00
Sergio Pedri
e92fd9a531 Fixed ambiguous match in XML comment 2020-06-28 13:22:40 +02:00
Sergio Pedri
93ca160f2a Added missing readonly modifier to Unit type 2020-06-28 13:21:47 +02:00
Sergio Pedri
3b1612f560 Minor bug fixes and code refactoring 2020-06-28 13:19:05 +02:00
Sergio Pedri
d94c429519 Added unit tests for new request message types 2020-06-26 15:05:07 +02:00
Sergio Pedri
548a8148ba Improved Messenger XML docs 2020-06-26 13:31:11 +02:00
Sergio Pedri
cd189e2836 Added AsyncCollectionRequestMessage<T> class 2020-06-26 13:18:49 +02:00
Sergio Pedri
a7b718d1d5 Added CollectionRequestMessage<T> class 2020-06-26 13:18:39 +02:00
Sergio Pedri
841537d023 Added AsyncRequestMessage<T> class 2020-06-26 12:39:07 +02:00
Sergio Pedri
d704281954 Merge branch 'master' into feature/mvvm-apis 2020-06-26 12:32:38 +02:00
Sergio Pedri
bb0dccf2ac Merge branch 'master' into feature/throw-helpers 2020-06-26 12:32:25 +02:00
Sergio Pedri
9380ddc47f Merge branch 'master' into improvement/high-performance-tweaks 2020-06-26 12:31:30 +02:00
Sergio Pedri
338ef23826 Merge branch 'master' into feature/new-bithelper-apis 2020-06-26 12:31:04 +02:00
msftbot[bot]
f0256d58ab Fixed local errors in .NET Core 2.1 unit tests (#3365)
## PR Type
What kind of change does this PR introduce?
<!-- Please uncomment one or more that apply to this PR. -->

 - Bugfix
 - Build or CI related changes
<!-- - Documentation content changes -->
<!-- - Sample app changes -->
<!-- - Other... Please describe: -->


## What is the current behavior?
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
Some .NET Core 2.1 unit tests for the base package fail when run locally.

## What is the new behavior?
<!-- Describe how was this issue resolved or changed? -->
All tests run correctly when executed locally.

## PR Checklist

Please check if your PR fulfills the following requirements:

- [X] Tested code with current [supported SDKs](../readme.md#supported)
- [ ] ~~Pull Request has been submitted to the documentation repository [instructions](..\contributing.md#docs). Link: <!-- docs PR link -->~~
- [ ] ~~Sample in sample app has been added / updated (for bug fixes / features)~~
    - [ ] ~~Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/windows-toolkit/WindowsCommunityToolkit-design-assets)~~
- [X] Tests for the changes have been added (for bug fixes / features) (if applicable)
- [X] Header has been added to all new source files (run *build/UpdateHeaders.bat*)
- [X] Contains **NO** breaking changes

<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. 
     Please note that breaking changes are likely to be rejected. -->
2020-06-26 00:32:23 +00:00
Sergio Pedri
19975a1df7 Fixed local errors in .NET Core 2.1 unit tests 2020-06-25 18:59:21 +02:00
Sergio Pedri
a0f3e74249 Renamed some APIs in RequestMessage<T> 2020-06-25 17:59:38 +02:00
Sergio Pedri
bf9837cc8f Fixed a copy-paste error in filename 2020-06-25 13:39:59 +02:00
Sergio Pedri
fbb7e85764 Added tests for TaskExtensions class 2020-06-25 13:26:16 +02:00
Sergio Pedri
81a68ac913 Fixed a refactoring typo 2020-06-24 19:30:11 +02:00
Sergio Pedri
a49f8df0ab Merge pull request #24 from Sergio0694/optimization/faster-messenger
Faster messenger
2020-06-24 18:46:34 +02:00
Sergio Pedri
bb48dad0e2 ~88% speedup in Messenger.Send 2020-06-24 18:38:34 +02:00
Sergio Pedri
5bc0befcb2 Removed unnecessary overload 2020-06-24 18:05:00 +02:00
Sergio Pedri
eb393ae1fa ~17% speedup in Messenger.Send 2020-06-24 17:55:05 +02:00
Sergio Pedri
32527ac443 Added property to track the total handlers 2020-06-24 17:40:38 +02:00