Commit Graph

227 Commits

Author SHA1 Message Date
Sergio Pedri 5802e2f90b Stop generating polyfills for nullability attributes 2022-12-19 20:31:23 +01:00
Sergio Pedri 1953935bbb Skip field reference diagnostics from constructors 2022-12-14 16:52:19 +01:00
Sergio Pedri cf451e8ac2 Fix exception type from Stream.Read extension 2022-12-13 16:22:22 +01:00
Sergio Pedri 35e358459b Add unit tests for new analyzer 2022-12-12 21:35:56 +01:00
Sergio Pedri 526ed1d6da Suppress warnings from analyzers in unit tests 2022-12-12 21:35:56 +01:00
Sergio Pedri aa4ff300c4 Merge pull request #531 from CommunityToolkit/dev/base-attribute-analyzer
Add analyzer for incorrect [INotifyPropertyChanged] and [ObservableObject] use
2022-12-12 12:35:08 -08:00
Sergio Pedri e3980a73f3 Add unit tests for new analyzer 2022-12-12 20:16:33 +01:00
Sergio Pedri 88a56f493f Suppress warnings from analyzers in unit tests 2022-12-12 20:16:33 +01:00
Sergio Pedri a7cfaa23ad Merge pull request #519 from CommunityToolkit/dev/ref-fields-memory
Use ref fields on .NET 7 for all span-like types
2022-12-12 07:06:40 -08:00
Sergio Pedri 7eef9f293e Add unit tests for buffered StreamExtensions.Read<T> 2022-12-07 16:57:22 +01:00
Sergio Pedri 83dd209f5f Fix mutability of ReadOnlySpan2D<T>.GetPinnableReference() 2022-12-07 13:20:54 +01:00
Sergio Pedri d105721bb2 Replace Unsafe.NullRef<T>() with ref *(T*)null 2022-11-23 16:38:04 +01:00
Sergio Pedri 3bbfe6c75e Replace Unsafe.SizeOf<T>() with sizeof(T) 2022-11-23 02:52:02 +01:00
Sergio Pedri 1f60a7bd4e Move all source files into src\ subfolder 2022-11-21 17:25:07 +01:00
Sergio Pedri ffb818aa15 Switch .NET Core 3.1 TFM in tests to .NET 7 2022-11-16 01:48:01 +01:00
Sergio Pedri 8730e39067 Bump NuGet packages to latest stable versions 2022-11-15 19:47:43 +01:00
Sergio Pedri 2a9cb1d79a Fix nullability warnings in test projects 2022-10-26 14:26:05 +02:00
Sergio Pedri f9bb4a451c Use raw multiline string literals in diagnostics tests 2022-10-26 14:26:04 +02:00
Sergio Pedri 15da57b8b3 Bump HighPerformance package to .NET 7 2022-10-26 13:22:14 +02:00
Sergio Pedri ec9c1d9b0d Add unit tests for lowercase command names 2022-10-23 14:24:44 +02:00
Sergio Pedri accfa0bcd6 Add unit tests for messenger observable APIs 2022-10-04 18:20:06 +02:00
Sergio Pedri 233c4f2421 Update all Roslyn and test SDKs to latest stable 2022-10-04 13:53:37 +02:00
Sergio Pedri f3977549a6 Remove Roslyn 4.3 workaround, bump to 4.3.1 2022-10-04 12:14:36 +02:00
Sergio Pedri df6c49e506 Add unit tests for property attribute forwarding 2022-09-28 16:35:48 +02:00
Sergio Pedri 20940ee744 Suppress CA2252 warnings 2022-09-16 12:32:41 +02:00
Sergio Pedri faf1061c90 Add workaround for Roslyn 4.3 issues 2022-09-15 01:20:42 +02:00
Sergio Pedri 65110da12c Restructure test projects into shared projects for multi-targeting 2022-09-13 13:33:05 +02:00
Sergio Pedri 8569223a76 Restructure source generator into shared project 2022-09-12 22:45:08 +02:00
Sergio Pedri 4e43f2901e Fix Roslyn multi-targeting and testing 2022-09-12 21:21:26 +02:00
Sergio Pedri b8749fe544 Switch orphaned fields diagnostics to analyzer 2022-09-10 02:48:36 +02:00
Sergio Pedri f3cbf78bf4 Adjust analyzer diagnostics unit tests to work on all TFMs 2022-09-10 01:38:05 +02:00
Sergio Pedri 31745cb1c3 Update generator/analyzer diagnostics unit tests 2022-09-10 00:10:41 +02:00
Sergio Pedri 57055d7ca8 Add CSharpAnalyzerWithLanguageVersionTest<TAnalyzer> test helper 2022-09-09 16:09:50 +02:00
Sergio Pedri 5be269e5ea Merge pull request #428 from CommunityToolkit/dev/roslyn-multi-targeting
Multi-target Roslyn dependency in MVVM Toolkit generators
2022-09-09 12:49:43 +02:00
Sergio Pedri 4fae4dded9 Merge pull request #398 from zhuman/fix_cslang_80
Fix for using C# 8.0 projects (e.g. UWP projects stuck on .NET Core 3)
2022-09-08 23:59:53 +02:00
Sergio Pedri 9b7d8710c6 Fix unit tests for generators
These two generators should never cause a build error
2022-09-08 23:41:31 +02:00
Sergio Pedri 7723c1e093 Code style tweaks 2022-09-08 23:26:43 +02:00
Sergio Pedri b661cb7f91 Enable multi-targeting Roslyn for unit test projects 2022-09-08 19:36:43 +02:00
Zachary Northrup 61e9e4792d Update source generator tests to actually generate the compiled output, update tests to use the minimum supported C# language version (8.0), and also validate that unsupported version cases actually succeed with the supported version 2022-08-23 19:11:22 -07:00
heku 74e24d6b43 Correct a typo in Converters.ToFileSizeString and add unit tests 2022-08-20 23:45:23 +08:00
Sergio Pedri 8528092ed2 Merge pull request #266 from OronDF343/add-memorystream-copytoasync
Asynchronous implementation of `MemorySource<TSource>.CopyToAsync`
2022-07-06 15:08:52 +02:00
Sergio Pedri d3250b6f78 Merge pull request #302 from CommunityToolkit/dev/fix-command-canexecute-nullability
Fix [RelayCommand] CanExecute when nullable arguments are used
2022-06-23 16:55:38 +02:00
Sergio Pedri bfa9e1c923 Add unit tests for command ArgumentException-s 2022-06-13 17:54:20 +02:00
Sergio Pedri 01e78f5c54 Add unit tests for [RelayCommand] with nullable arguments 2022-06-13 17:54:01 +02:00
Oron Feinerman b831020f70 Add unit tests for CopyTo and CopyToAsync 2022-06-12 10:45:39 +03:00
Sergio Pedri 6972de2fee Add "this." prefix to all field accesses 2022-06-11 16:28:44 +02:00
Nirmal Guru 41abf66445 Update EditorConfig and Git files
- Add default Git attributes.
- Update Git ignores to latest.
- Merge duplicate EditorConfig rules.
- Format projects to EditorConfig rules.
- Fix formatting errors in 'Guard.md' file.
2022-06-11 15:36:02 +02:00
Sergio Pedri fdda4c6bb0 Add more unit tests for synchronous exceptions 2022-06-04 16:37:33 +02:00
Sergio Pedri 923d479bbf Add unit tests for exception flow generator option 2022-06-04 16:37:32 +02:00
Sergio Pedri 799558c27a Add unit tests for throwing async commands 2022-06-04 16:37:32 +02:00