Commit Graph

53 Commits

Author SHA1 Message Date
Sergio Pedri fd7fa69538 Add unit tests for forwarded [RelayCommand] attributes 2023-03-08 20:19:39 +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 f9bb4a451c Use raw multiline string literals in diagnostics tests 2022-10-26 14:26:04 +02:00
Sergio Pedri b8749fe544 Switch orphaned fields diagnostics to analyzer 2022-09-10 02:48:36 +02:00
Sergio Pedri 31745cb1c3 Update generator/analyzer diagnostics unit tests 2022-09-10 00:10:41 +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
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
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
Sergio Pedri 49201619c8 Add diagnostic for duplicate ICommand-s in base types 2022-05-27 14:17:29 +02:00
Sergio Pedri 914f31d99b Add unit tests for blocked generated properties 2022-05-09 21:13:37 +02:00
Sergio Pedri 3ff3d8e8cd Add diagnostics for [ICommand] on multiple overloads 2022-03-26 13:52:28 +01:00
Sergio Pedri 4edcd888cb Add unit tests for [AlsoBroadcastChange] 2022-03-16 15:30:03 +01:00
Sergio Pedri eb41f891f8 Add diagnostics for invalid [ObservableRecipient] target type 2022-03-14 00:02:38 +01:00
Sergio Pedri 17d4df6555 Add diagnostics for orphaned [ObservableProperty] dependent attributes 2022-03-13 20:07:27 +01:00
Sergio Pedri b632429c15 Add diagnostics for invalid [ObservableProperty] containing type 2022-03-13 19:37:15 +01:00
Sergio Pedri 914a7aca26 Add diagnostics for combining [INPC] and [ObservableObject] 2022-03-13 18:39:23 +01:00
Sergio Pedri 840e7a5983 More bug fixes to new diagnostics 2022-03-13 15:15:20 +01:00
Sergio Pedri ccb8a9d4ad Fixed bugs in new diagnostics logic 2022-03-13 15:15:20 +01:00
Sergio Pedri ce44cffb26 Add diagnostics tests for new diagnostics 2022-03-13 15:15:20 +01:00
Sergio Pedri 53f9abf098 Add diagnostics for name collision for [ObservableProperty] 2022-03-13 15:15:19 +01:00
Sergio Pedri 1371da130a Add unit tests for cancel commands 2022-03-02 12:45:38 +01:00
Sergio Pedri 9cc7d41c1e Add FilterWithLanguageVersion extension to gate on language version 2021-12-29 18:31:11 +01:00
Sergio Pedri 48c7c73ae6 Remove non incremental generator paths from unit tests 2021-12-29 18:31:11 +01:00
Sergio Pedri 2428765852 Remove leftover DiagnosticDescriptor-s 2021-12-29 18:31:11 +01:00
Sergio Pedri b354891cc2 Fix build errors in source generator test project 2021-12-29 18:29:56 +01:00
Sergio Pedri 0ca0170da9 Resolve rebase build errors 2021-12-10 00:58:55 +01:00
Sergio Pedri 75c51164b3 Add concurrency control setting to [ICommand] attribute 2021-12-10 00:08:12 +01:00
Sergio Pedri 042ff3f4c6 Add diagnostics tests for CanExecute feature, bug fixes 2021-12-09 10:49:58 +01:00
Sergio Pedri 7d68280215 Remove redundant [TestCategory] attributes 2021-11-04 21:48:54 +01:00
Sergio Pedri 9f4c9fad7f Remove unnecessary using directives 2021-11-01 22:14:16 +01:00
Sergio Pedri 58c0dd96c4 Fix namespaces in unit test projects 2021-11-01 22:12:56 +01:00
Sergio Pedri c176080d37 Switch whole solution to file-scoped namespaces 2021-11-01 20:46:46 +01:00