Marcin Krystianc
8323145328
Eliminate this = default shortcut when height * width = 0
2025-11-24 14:52:57 -08:00
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
417ae60969
Remove duplicate DataRow attributes in unit tests
...
Eliminated repeated [DataRow(64, 4, 0)] attributes from three test methods in Test_MemoryExtensions.cs to avoid redundant test cases and improve test clarity.
2025-11-07 14:56:47 -08:00
Sergio Pedri
5eb6a68b42
Don't use '[ExpectedException]' in HighPerformance tests
2025-11-07 14:56:47 -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
77e0435df0
Bump unit tests from .NET 7 to .NET 9
2025-11-05 12:55:43 -08:00
Youssef Victor
78348ca09a
Improve test coverage for SpanExtensions.IndexOf ( #1023 )
2024-12-10 19:47:24 -08:00
Piotr Zięzio
8de7190cb0
Fix IBufferWriterExtensions Write for unmanaged types
2024-08-20 10:10:01 -07:00
Sergio Pedri
98c5b3caa6
Add missing in modifiers
2024-01-20 17:27:19 +01:00
Sergio Pedri
cf451e8ac2
Fix exception type from Stream.Read extension
2022-12-13 16:22:22 +01:00
Sergio Pedri
7eef9f293e
Add unit tests for buffered StreamExtensions.Read<T>
2022-12-07 16:57:22 +01:00
Sergio Pedri
3bbfe6c75e
Replace Unsafe.SizeOf<T>() with sizeof(T)
2022-11-23 02:52:02 +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
15da57b8b3
Bump HighPerformance package to .NET 7
2022-10-26 13:22:14 +02:00
Sergio Pedri
d4a8971ff6
Merge pull request #237 from danielbanda/Typos
...
Typos
2022-05-25 20:12:29 +02:00
Sergio Pedri
d1f7c051aa
Resolve some build warnings
2022-05-09 15:58:40 +02:00
Daniel Banda
f2dce06b4d
Fixing some typos.
2022-05-03 21:21:10 -07:00
ovska
714576210d
Test ArrayPoolExtensions.EnsureCapacity
2022-04-08 19:05:21 +03:00
ovska
98f450ae9c
Fix outdated test method names for ArrayPoolExtensions
2022-04-05 20:48:01 +03:00
Sergio Pedri
3b3c8b1a00
Merge pull request #183 from CommunityToolkit/dev/remove-spinlock-object-extension
...
Remove SpinLock extension taking an object
2022-04-04 19:47:47 +02:00
Sergio Pedri
bffc3d72f8
Change IndexOf APIs to return -1 if not found
2022-03-30 20:37:07 +02:00
Sergio Pedri
760c3c2096
Remove SpinLock extension taking an object
2022-03-28 13:43:21 +02:00
Sergio Pedri
f81cf4b4f9
Switch to target-type new() for direct return values
2022-01-01 17:02:31 +01:00
Sergio Pedri
6d7bf0dd14
Add vectorized Count<T> support for nint/nuint
2021-12-29 18:08:05 +01:00
Sergio Pedri
3e61aeb3c1
Remove [Pure] attribute usages
2021-12-29 18:06:54 +01:00
Sergio Pedri
c1c52da44d
Add new NullableExtensions unit tests
2021-12-17 14:02:19 +01:00
Sergio Pedri
b155e0456b
Fix incorrect namespace for NullableExtensions
2021-12-17 13:54:29 +01:00
Sergio Pedri
48ab1dda62
Streamline some build conditional blocks
2021-11-22 17:55:01 +01:00
Sergio Pedri
1d420b780c
Update CommunityToolkit.HighPerformance to .NET 6
2021-11-22 17:37:34 +01:00
Sergio Pedri
7d68280215
Remove redundant [TestCategory] attributes
2021-11-04 21:48:54 +01:00
Sergio Pedri
a5ef60ea4d
Enable .NET Standard 2.0 tests through .NET Framework 4.7.2
2021-11-02 02:36:50 +01:00
Sergio Pedri
eab4b9ed28
More whitespaces and code style tweaks
2021-11-02 00:28:30 +01:00
Sergio Pedri
93cb82a0d0
Fix incorrect whitespaces, minor code style tweaks
2021-11-02 00:01:05 +01:00
Sergio Pedri
6afdd81742
Refactor multiline variable declarations
2021-11-01 23:42:45 +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
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
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