54 Commits
Author SHA1 Message Date
Sergio Pedri 12ae36b594 Refactor unit tests to use new assertion helpers
Replaces usages of Assert.AreEqual, Assert.IsTrue, and similar assertions with new helper methods such as Assert.HasCount, Assert.IsEmpty, Assert.IsNull, and Assert.IsGreaterThanOrEqualTo across multiple test files. This improves test readability and consistency with updated assertion APIs.
2025-11-09 18:34:09 -08:00
Sergio Pedri e88c524c3e Refactor unit tests to use expected-first Assert.AreEqual
Updated all unit tests to consistently use the expected value as the first argument in Assert.AreEqual calls. This improves readability and aligns with best practices for test assertions.
2025-11-09 18:33:21 -08:00
Sergio Pedri 15867433e8 Update code paths for .NET 7 as base 2024-11-13 09:10:53 -08:00
Sergio Pedri 8404e3ae45 Add unit test for updated diagnostic suppressor 2024-09-18 17:31:05 +02:00
Sergio Pedri eda07b39e4 Fix some nullability warnings 2024-01-20 19:06:26 +01:00
Sergio Pedri 885755570d Add runtime unit tests for new dependency generation 2023-10-24 21:44:49 +02:00
Sergio Pedri 9f7d0bd34c Update unit tests for negative forwarded enum values 2023-07-11 17:10:10 +02:00
Sergio Pedri d2fe8a0eb0 Add unit tests for [MemberNotNull] generation 2023-03-14 14:07:59 +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 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 df6c49e506 Add unit tests for property attribute forwarding 2022-09-28 16:35:48 +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 d429e0327b Fix source generators for types in global namespace 2022-06-01 22:08:12 +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 d4a8971ff6 Merge pull request #237 from danielbanda/Typos
Typos
2022-05-25 20:12:29 +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
Sergio Pedri 9f951c2cf0 Make source generators culture invariant 2022-05-09 21:44:12 +02:00
Sergio Pedri 414c8375a3 Add unit test for base viewmodel in separate assembly 2022-05-09 16:11:44 +02:00
Sergio Pedri d1f7c051aa Resolve some build warnings 2022-05-09 15:58:40 +02:00
Sergio Pedri f92fef7137 Add more unit tests for generics with [ObservableProperty]
This covers all cases from #224 as well.
2022-05-09 15:58:40 +02:00
Daniel Banda f2dce06b4d Fixing some typos. 2022-05-03 21:21:10 -07:00
Sergio Pedri 759c6b3f33 Add unit test for diagnostics on inherited members 2022-04-06 18:14:00 +02:00
Sergio Pedri 393a223229 Improve comments on commented out unit tests 2022-03-25 22:28:11 +01:00
Sergio Pedri 6e734ef065 Add unit tests 2022-03-25 22:28:11 +01:00
Sergio Pedri 4bb6067abc Fix nullability annotations in generated properties 2022-03-25 22:27:18 +01:00
Sergio Pedri 4edcd888cb Add unit tests for [AlsoBroadcastChange] 2022-03-16 15:30:03 +01:00
Sergio Pedri 840e7a5983 More bug fixes to new diagnostics 2022-03-13 15:15:20 +01:00
Sergio Pedri 0f7dfe632f Add more unit tests for [AlsoNotifyCanExecuteFor] 2022-03-13 15:15:20 +01:00
Sergio Pedri f40eb62717 Add more tests for generated partial methods 2022-03-01 00:17:30 +01:00
Sergio Pedri 4fb135719f Add unit test for new partial generated methods 2022-03-01 00:17:30 +01:00
Sergio Pedri 0162c71c5b Add unit test for [AlsoNotifyCanExecuteFor] 2021-12-09 21:02:08 +01:00
Sergio Pedri 7d68280215 Remove redundant [TestCategory] attributes 2021-11-04 21:48:54 +01:00
Sergio Pedri 51c7a67c20 More code style improvements and tweaks
- Remove unused namespaces
- Remove unused attributes
- Remove unnecessary #nullable enable directives
- Sort using directives
- Simplify names
2021-11-01 22:29:46 +01:00
Sergio Pedri 58c0dd96c4 Fix namespaces in unit test projects 2021-11-01 22:12:56 +01:00