com.wallstop-studios.unity-helpers 2.0.0-rc77.4 → 2.0.0-rc77.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Editor/AssetProcessors/SpriteLabelProcessor.cs +5 -7
- package/Runtime/Binaries/Microsoft.Bcl.AsyncInterfaces.xml +92 -37
- package/Runtime/Binaries/System.Text.Encodings.Web.xml +1070 -927
- package/Runtime/Binaries/System.Text.Json.xml +7842 -4556
- package/Runtime/Core/Extension/StringExtensions.cs +1 -2
- package/Runtime/Core/Helper/Helpers.cs +31 -8
- package/Runtime/Core/Helper/Logging/UnityLogTagFormatter.cs +0 -1
- package/Runtime/Protobuf-Net/System.Collections.Immutable.xml +6719 -5287
- package/Runtime/Protobuf-Net/System.Runtime.CompilerServices.Unsafe.xml +337 -286
- package/Runtime/Tags/CosmeticEffectData.cs +2 -2
- package/Tests/Runtime/Helper/ReflectionHelperTests.cs +16 -20
- package/package.json +2 -1
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
_cosmetics = new Lazy<CosmeticEffectComponent[]>(
|
|
25
25
|
GetComponents<CosmeticEffectComponent>
|
|
26
26
|
);
|
|
27
|
-
_cosmeticTypes = new Lazy<HashSet<Type>>(
|
|
28
|
-
|
|
27
|
+
_cosmeticTypes = new Lazy<HashSet<Type>>(() =>
|
|
28
|
+
_cosmetics.Value.Select(cosmetic => cosmetic.GetType()).ToHashSet()
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -60,11 +60,10 @@
|
|
|
60
60
|
[Test]
|
|
61
61
|
public void GetStaticFieldGetterThrowsOnNonStaticField()
|
|
62
62
|
{
|
|
63
|
-
Assert.Throws<ArgumentException>(
|
|
64
|
-
(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
)
|
|
63
|
+
Assert.Throws<ArgumentException>(() =>
|
|
64
|
+
ReflectionHelpers.GetStaticFieldGetter(
|
|
65
|
+
typeof(TestClass).GetField(nameof(TestClass.intValue))
|
|
66
|
+
)
|
|
68
67
|
);
|
|
69
68
|
}
|
|
70
69
|
|
|
@@ -171,11 +170,10 @@
|
|
|
171
170
|
[Test]
|
|
172
171
|
public void GetStaticFieldSetterThrowsOnNonStaticField()
|
|
173
172
|
{
|
|
174
|
-
Assert.Throws<ArgumentException>(
|
|
175
|
-
(
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
)
|
|
173
|
+
Assert.Throws<ArgumentException>(() =>
|
|
174
|
+
ReflectionHelpers.GetStaticFieldSetter(
|
|
175
|
+
typeof(TestClass).GetField(nameof(TestClass.intValue))
|
|
176
|
+
)
|
|
179
177
|
);
|
|
180
178
|
}
|
|
181
179
|
|
|
@@ -288,11 +286,10 @@
|
|
|
288
286
|
[Test]
|
|
289
287
|
public void GetStaticFieldSetterGenericThrowsOnNonStaticField()
|
|
290
288
|
{
|
|
291
|
-
Assert.Throws<ArgumentException>(
|
|
292
|
-
(
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
)
|
|
289
|
+
Assert.Throws<ArgumentException>(() =>
|
|
290
|
+
ReflectionHelpers.GetStaticFieldSetter<int>(
|
|
291
|
+
typeof(TestClass).GetField(nameof(TestClass.intValue))
|
|
292
|
+
)
|
|
296
293
|
);
|
|
297
294
|
}
|
|
298
295
|
|
|
@@ -401,11 +398,10 @@
|
|
|
401
398
|
[Test]
|
|
402
399
|
public void GetStaticFieldGetterGenericThrowsOnNonStaticField()
|
|
403
400
|
{
|
|
404
|
-
Assert.Throws<ArgumentException>(
|
|
405
|
-
(
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
)
|
|
401
|
+
Assert.Throws<ArgumentException>(() =>
|
|
402
|
+
ReflectionHelpers.GetStaticFieldGetter<int>(
|
|
403
|
+
typeof(TestClass).GetField(nameof(TestClass.intValue))
|
|
404
|
+
)
|
|
409
405
|
);
|
|
410
406
|
}
|
|
411
407
|
|
package/package.json
CHANGED