mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-01-05 17:13:43 +08:00
Add some more tests
This commit is contained in:
parent
62354b6aa2
commit
9f1df11940
@ -14,7 +14,7 @@ using UnhollowerBaseLib;
|
|||||||
|
|
||||||
namespace UnityExplorer.Tests
|
namespace UnityExplorer.Tests
|
||||||
{
|
{
|
||||||
public static class TestClass
|
public class TestClass
|
||||||
{
|
{
|
||||||
static TestClass()
|
static TestClass()
|
||||||
{
|
{
|
||||||
@ -54,6 +54,12 @@ namespace UnityExplorer.Tests
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int this[int index]
|
||||||
|
{
|
||||||
|
get => UnityEngine.Random.Range(0, int.MaxValue);
|
||||||
|
set => ExplorerCore.Log(index);
|
||||||
|
}
|
||||||
|
|
||||||
// Test methods
|
// Test methods
|
||||||
|
|
||||||
private static object GetRandomObject()
|
private static object GetRandomObject()
|
||||||
@ -87,11 +93,12 @@ namespace UnityExplorer.Tests
|
|||||||
Vector3 vector,
|
Vector3 vector,
|
||||||
Quaternion quaternion,
|
Quaternion quaternion,
|
||||||
object obj,
|
object obj,
|
||||||
Type type)
|
Type type,
|
||||||
|
GameObject go)
|
||||||
{
|
{
|
||||||
ExplorerCore.Log($"_string: {_string}, integer: {integer}, color: {color.ToString()}, flags: {flags}, " +
|
ExplorerCore.Log($"_string: {_string}, integer: {integer}, color: {color.ToString()}, flags: {flags}, " +
|
||||||
$"vector: {vector.ToString()}, quaternion: {quaternion.ToString()}, obj: {obj?.ToString() ?? "null"}," +
|
$"vector: {vector.ToString()}, quaternion: {quaternion.ToString()}, obj: {obj?.ToString() ?? "null"}," +
|
||||||
$"type: {type?.FullName ?? "null"}");
|
$"type: {type?.FullName ?? "null"}, go: {go?.ToString() ?? "null"}");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void Init_Mono()
|
private static void Init_Mono()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user