25 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 2b42d139af Use Assert.ThrowsExactly in unit tests
Replaces usage of Assert.ThrowsException with Assert.ThrowsExactly across multiple unit test files to ensure that tests only pass when the exact exception type is thrown, improving test precision and reliability.
2025-11-07 11:56:48 -08:00
Sergio Pedri bfa9e1c923 Add unit tests for command ArgumentException-s 2022-06-13 17:54:20 +02:00
Sergio Pedri fdda4c6bb0 Add more unit tests for synchronous exceptions 2022-06-04 16:37:33 +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 a3c55276a8 Fix async relay command CanExecute raised with no concurrency 2022-03-12 00:44:54 +01:00
Sergio Pedri 7a4eccbc10 Remove CanExecute checks from Execute logic 2022-03-09 22:14:51 +01:00
Sergio Pedri 1371da130a Add unit tests for cancel commands 2022-03-02 12:45:38 +01:00
Sergio Pedri 9c0a1b36cb Minor bug fixes, add more unit tests 2022-03-01 00:00:52 +01:00
Sergio Pedri 105e31ac87 Fix some typos 2022-02-28 23:12:26 +01:00
Sergio Pedri d776a1ecda Add unit tests for Execute raising CanExecuteChanged if needed 2022-02-28 22:58:55 +01:00
Sergio Pedri 55b600b5f4 Add unit tests for UnobservedTaskExceptions propagation 2022-02-28 22:37:26 +01:00
Sergio Pedri f6ca1f0bc4 Switch default async command concurrency to false 2022-02-27 18:53:07 +01:00
Sergio Pedri fa0eb97e3b Add unit tests for concurrency control setting 2021-12-10 00:02:22 +01:00
Sergio Pedri 7d68280215 Remove redundant [TestCategory] attributes 2021-11-04 21:48:54 +01:00
Sergio Pedri eab4b9ed28 More whitespaces and code style tweaks 2021-11-02 00:28:30 +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
Sergio Pedri c176080d37 Switch whole solution to file-scoped namespaces 2021-11-01 20:46:46 +01:00
Sergio Pedri 7a2295b03c Update some code style rules
In particular:
- Use explicit types everywhere to improve clarity
- Use target-typed new() expression when target is explicit
- Use explicit discard for value-returning statements
2021-11-01 20:34:00 +01:00
Sergio Pedri 11ab330e69 Enable nullability annotations in the entire solution 2021-11-01 19:27:55 +01:00
Sergio Pedri 8b7c87284b Update namespaces from Microsoft.Toolkit to CommunityToolkit 2021-11-01 17:22:05 +01:00
Sergio Pedri b498321331 Rename folders/projects from Microsoft.Toolkit to CommunityToolkit 2021-11-01 17:07:47 +01:00