Commit Graph

83 Commits

Author SHA1 Message Date
Sergio Pedri 01f07fec16 Add unit tests for new attribute expression diagnostics 2023-05-10 16:47:15 +02:00
Sergio Pedri 35db0843be Dynamically resolve assembly version in generator tests 2023-05-10 14:39:33 +02:00
Sergio Pedri 40c82ce907 Add one more generator test for enum values 2023-05-04 16:07:05 +02:00
Sergio Pedri 374219554b Fix forwarding attributes with negative enum values 2023-05-04 15:48:04 +02:00
Sergio Pedri 873c1c3613 Add unit tests for XML docs on generated property change args 2023-03-25 18:47:22 +01:00
Sergio Pedri 2e7634829d Preserve /// <inheritdoc/> in top level types, add unit test 2023-03-25 18:19:37 +01:00
Sergio Pedri 3b2d287d28 Add /// <inheritdoc/> to generated type hierarchies 2023-03-25 18:11:07 +01:00
Sergio Pedri 673801af53 Update generator for unconstrained generic nullability 2023-03-14 18:34:27 +01:00
Sergio Pedri d2fe8a0eb0 Add unit tests for [MemberNotNull] generation 2023-03-14 14:07:59 +01:00
Sergio Pedri 7c3c8c56fb Bump version to 8.2.0 2023-03-09 21:16:11 +01:00
Sergio Pedri 66f582bd94 Fix [RelayCommand] attribute over methods with no attributes 2023-03-09 20:25:50 +01:00
Sergio Pedri 9297335238 Fix partial methods support with Roslyn 4.0
Also ensure a consistent order for forwarded attributes
2023-03-09 15:38:16 +01:00
Sergio Pedri a845ad4b16 Fix attributes gathering from partial command methods 2023-03-09 14:13:34 +01:00
Sergio Pedri fd7fa69538 Add unit tests for forwarded [RelayCommand] attributes 2023-03-08 20:19:39 +01:00
Sergio Pedri 0ea77c3aae Add codegen test for filename hints on Roslyn 4.0.1 2023-02-14 13:49:29 +01:00
Sergio Pedri b4b2227bd9 Fix forwarded double attribute parameters 2023-02-10 19:01:23 +01:00
Sergio Pedri 845503d7f7 Add codegen test for new partial property hooks 2023-02-01 00:07:45 +01:00
Sergio Pedri b7f121c2ef Update unit tests for the two new analyzers 2023-01-22 21:34:37 +01:00
Sergio Pedri 9eb3a05d85 Add unit tests for new attribute diagnostics 2023-01-16 13:21:39 +01:00
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 35e358459b Add unit tests for new analyzer 2022-12-12 21:35:56 +01:00
Sergio Pedri e3980a73f3 Add unit tests for new analyzer 2022-12-12 20:16:33 +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 f9bb4a451c Use raw multiline string literals in diagnostics tests 2022-10-26 14:26:04 +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 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
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 923d479bbf Add unit tests for exception flow generator option 2022-06-04 16:37:32 +02:00
Sergio Pedri 25a213bcd0 Rename [ICommand] to [RelayCommand] 2022-06-02 01:40:58 +02:00
Sergio Pedri 0267515b9d Rename [NotifyRecipients] to [NotifyPropertyChangedRecipients] 2022-06-01 23:26:55 +02:00
Sergio Pedri 32285a10e9 Add warning for unnecessary [NotifyDataErrorInfo] attribute 2022-06-01 23:26:54 +02:00
Sergio Pedri 0594506c2a Add warning for unnecessary [NotifyRecipients] attribute 2022-06-01 23:26:54 +02:00
Sergio Pedri 6af95b5e03 Add tests for class-level attributes 2022-06-01 23:26:54 +02:00
Sergio Pedri 52e5ebfd18 Rename [NotifyRecipients] attribute 2022-06-01 23:26:53 +02:00
Sergio Pedri 29f94a4ce7 Rename [NotifyDataErrorInfo] attribute 2022-06-01 23:26:53 +02:00
Sergio Pedri 91a7798e42 Rename [NotifyCanExecuteChangedFor] attribute 2022-06-01 23:26:52 +02:00
Sergio Pedri e7527d79b4 Rename [NotifyPropertyChangedFor] attribute 2022-06-01 23:26:52 +02:00
Sergio Pedri 8742886a0d Merge pull request #277 from CommunityToolkit/dev/duplicate-base-icommand-diagnostics
Add diagnostic for duplicate ICommand-s in base types
2022-06-01 22:11:27 +02:00
Sergio Pedri 31918450ef Improve diagnostics, add unit tests 2022-05-31 12:32:48 +02:00