Commit Graph

43 Commits

Author SHA1 Message Date
Oliver Booth 3655e33a9c
chore(test): update test project to 2021.3.22f1
ref b6c551784ba3
2023-04-13 01:50:26 +01:00
Oliver Booth 3f08f5270f
feat: add DebugUtility.DrawFunction 2023-04-13 01:48:58 +01:00
Oliver Booth 98cd96d5cb
fix(test): fix malformed test
The child was not being assigned a new parent, causing GetComponentsInChildrenOnly to return empty array and the subsequent line:

Assert.That(components, Has.Length.EqualTo(1));

was resulting in a test fail.
2023-04-10 13:45:39 +01:00
Oliver Booth f4d6c9083b
refactor(test): remove lingering IEnumerator test
Remant from 0b5bb074c8
2023-04-10 13:44:37 +01:00
Oliver Booth 0b5bb074c8
refactor(test): remove IEnumerator tests
Use synchronous NUnit tests
2023-04-10 13:38:56 +01:00
Oliver Booth 77ab429f72
refactor: remove Copy/Move component functionality
This may be returned at a later point.
2023-04-10 13:26:38 +01:00
Oliver Booth ad2d33aa88
style(test): use constraint API for length check 2023-04-07 01:34:34 +01:00
Oliver Booth dc6d984fa8
test: suppress ReSharper.Unity.InefficientPropertyAccess
This is false positive being thrown by the analyzer. The values are - in fact - changing before being read each time.
2023-04-07 01:34:08 +01:00
Oliver Booth 420ec2433a
feat: add Component move/copy
As usual, experimental API - subject to change.
2023-04-07 01:21:56 +01:00
Oliver Booth fcdcf54aa3
test: use NUnit constraint API in X10D.Unity.Tests (#76) 2023-04-05 22:51:59 +01:00
Oliver Booth 5d2313fa20
test: replace playmode tests with NUnit tests (#76)
Using yield break; in a coroutine which does not need to be one, that's a paddlin'.
2023-04-05 22:51:59 +01:00
Oliver Booth 77836d51fc
fix(test): fix ref as of bc3dedfa7d 2023-04-02 04:54:58 +01:00
Oliver Booth 183033cc80
test: update X10D.Unity.Tests to 2021.3.21f1
This update also updates com.unity.collab-proxy to 2.0.1
2023-03-28 23:18:56 +01:00
Oliver Booth 3607034818
[X10D.Unity] Add tests for Color(32).Deconstruct 2023-02-27 13:55:06 +00:00
Oliver Booth 55a2e99b82
Update project to 2021.3.19f1 2023-02-27 13:54:26 +00:00
Oliver Booth da5c350117
Add edge case for WaitForTimeSpan unit test
Read comment for more details
2022-11-29 18:09:41 +00:00
Oliver Booth af622a8ef7
Allow for minor differentiation in equality test 2022-11-29 17:45:27 +00:00
Oliver Booth b09b2287d2
Update project to 2021.3.14f1 2022-11-29 17:39:50 +00:00
Oliver Booth 7e2650bd41
[ci skip] Update project to 2021.3.5f1 2022-07-14 12:10:22 +01:00
Oliver Booth dcbe591d66
[X10D.Unity] Add various yield instructions 2022-07-14 12:00:55 +01:00
Oliver Booth c0395feba3
Add GetClosestConsoleColor (#66) 2022-07-13 14:18:12 +01:00
Oliver Booth 46bfa17b93
Add vector and point component rounding (#65) 2022-07-13 12:09:37 +01:00
Oliver Booth de7a621545
[ci skip] Rename DrawBox to DrawWireCube 2022-06-02 12:24:26 +01:00
Oliver Booth e501f3b75b
[ci skip] Call AddVertex, not AddPoint 2022-06-01 19:49:09 +01:00
Oliver Booth 793fa47524
Add DebugEx integration tests 2022-06-01 19:44:15 +01:00
Oliver Booth 74af813d78
Add RectInt conversions 2022-06-01 11:06:24 +01:00
Oliver Booth c600825f55
[ci skip] Update X10D.Unity.Tests 2021.3.3f1 2022-05-31 11:52:37 +01:00
Oliver Booth 28dd88cf0a
Add Vector2/3Int method parity
* Added Vector2/3Int.Deconstruct
* Added Vector2/3Int.WithX
* Added Vector2/3Int.WithY
* Added Vector3Int.WithZ
* Added Vector2Int.ToSystemPoint
* Added Vector2Int.ToSystemSize
2022-05-31 11:41:29 +01:00
Oliver Booth f35f398d7f
Add conversions between Size(F)/Point(F)/Vector and Rect/Rectangle(F) 2022-05-28 14:19:46 +01:00
Oliver Booth 5aea71465a
Add UnityEngine/System.Drawing color conversions 2022-05-16 10:41:53 +01:00
Oliver Booth e23aa13fda
Fix alpha values in Color32Tests 2022-05-16 10:40:32 +01:00
Oliver Booth d312d05f7a
Add vector tuple deconstruction 2022-05-16 10:30:55 +01:00
Oliver Booth 542b56fd01
Update X10D.Unity.Tests 2021.3.2f1
Reference Unity3D.SDK 2021.1.14f1 for X10D.Unity
2022-05-13 09:10:59 +01:00
Oliver Booth 048e0a22f7
Add Singleton<T> class 2022-05-13 09:09:25 +01:00
Oliver Booth 1428618ca9
Add System.Numerics/UnityEngine vector/quaternion conversions 2022-05-09 20:40:55 +01:00
Oliver Booth 4d19e2f64c
Add Vector.With* methods (resolves #56) 2022-05-09 10:33:21 +01:00
Oliver Booth d904daf431
Add Color.With* methods (resolves #55) 2022-05-09 10:01:03 +01:00
Oliver Booth 176ad9fa09
[ci skip] Define colors as fields 2022-05-09 09:59:03 +01:00
Oliver Booth df0257f498
Add GameObject.SetLayerRecursively (#57) 2022-05-08 22:37:03 +01:00
Oliver Booth 4d94eabacc
[github actions] Use local build artifacts instead of package 2022-05-08 19:56:48 +01:00
Oliver Booth aa30abea93
Add Color.Inverted (#54) 2022-05-08 19:52:49 +01:00
Oliver Booth 6c24231a2c
[ci skip] Apply root namespace X10D.Unity 2022-05-08 12:17:57 +01:00
Oliver Booth 7da6dc1009
Add tests for X10D.Unity 2022-05-08 12:09:30 +01:00