Commit Graph

148 Commits

Author SHA1 Message Date
Sergio Pedri a7c198acab Add unit test for validating inherited properties 2023-05-11 14:10:48 +02:00
Sergio Pedri d2fe8a0eb0 Add unit tests for [MemberNotNull] generation 2023-03-14 14:07:59 +01:00
Sergio Pedri 30c4ad472c Support partial [RelayCommand] methods 2023-03-09 13:53:42 +01:00
Sergio Pedri fd7fa69538 Add unit tests for forwarded [RelayCommand] attributes 2023-03-08 20:19:39 +01:00
Sergio Pedri 7f4c8800aa Add functional tests for new generated methods 2023-02-01 00:07:45 +01:00
Sergio Pedri 8794cce676 Add unit test for [ObservableProperty] on _UpperCamel field 2023-01-01 18:34:11 +01:00
Sergio Pedri 526ed1d6da Suppress warnings from analyzers in unit tests 2022-12-12 21:35:56 +01:00
Sergio Pedri 88a56f493f Suppress warnings from analyzers in unit tests 2022-12-12 20:16:33 +01:00
Sergio Pedri 3bbfe6c75e Replace Unsafe.SizeOf<T>() with sizeof(T) 2022-11-23 02:52:02 +01:00
Sergio Pedri 2a9cb1d79a Fix nullability warnings in test projects 2022-10-26 14:26:05 +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 df6c49e506 Add unit tests for property attribute forwarding 2022-09-28 16:35:48 +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 b661cb7f91 Enable multi-targeting Roslyn for unit test projects 2022-09-08 19:36:43 +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
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
Sergio Pedri 79204ab489 Switch async command types to use AsyncRelayCommandOptions 2022-06-04 15:20:30 +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 4a3f919f71 Add unit test for inheriting [INotifyDataErrorInfo] 2022-06-01 23:26:54 +02:00
Sergio Pedri 69ddcfd8bb Add test case for inheriting multiple class-level attributes 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 138f67d3a4 Fix ICommand generator with inherited CanExecute members 2022-06-01 22:26:45 +02:00
Sergio Pedri f1f253e760 Merge pull request #285 from CommunityToolkit/dev/icommand-nullability-annotations
Properly forward nullability annotations for [ICommand]
2022-06-01 22:25:48 +02:00
Sergio Pedri 9560e3fef2 Properly forward nullability annotations for [ICommand] 2022-06-01 22:10:43 +02:00
Sergio Pedri d429e0327b Fix source generators for types in global namespace 2022-06-01 22:08:12 +02:00
Sergio Pedri 2c5bf9c14a Merge pull request #279 from CommunityToolkit/dev/command-on-prefix
Add support for "On" prefix for command methods
2022-06-01 22:06:35 +02:00
Sergio Pedri 0b15992b66 Add unit test for [AlsoValidateProperty] 2022-05-31 12:32:48 +02:00
Sergio Pedri e202a554e7 Forward all DataAnnotations attribute for [ObservableProperty] 2022-05-31 12:32:47 +02:00
Sergio Pedri 8a9fc91b5b Add support for "On" prefix for command methods 2022-05-27 16:05:30 +02:00
Sergio Pedri d4a8971ff6 Merge pull request #237 from danielbanda/Typos
Typos
2022-05-25 20:12:29 +02:00
Sergio Pedri d299dfdbdc Merge pull request #258 from CommunityToolkit/dev/fix-observableproperty-inherited-canexecute
Fix [ICommand] CanExecute with inherited generated property
2022-05-24 10:42:36 -07:00
Sergio Pedri db831fc34f Fix build error with generic ObservableValidator types 2022-05-24 09:54:51 +02:00
Sergio Pedri 59d92997ca Fix build error with generic IRecipient<T> types
This just uses the compiled LINQ expression fallback
2022-05-24 09:53:05 +02:00
Sergio Pedri d61796f1c7 Add unit tests for abstract source generation targets 2022-05-21 14:06:43 +02:00
Sergio Pedri 6af97af3ee Fix [ICommand] CanExecute with inherited generated property 2022-05-20 14:22:28 +02:00
Sergio Pedri 27fd6c38f2 Add unit tests for [Display] breaking [AlsoBroadcastChange] 2022-05-10 15:41:05 +02:00