Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 9f1df11

Browse files
committed
Add some more tests
1 parent 62354b6 commit 9f1df11

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/Core/Tests/TestClass.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace UnityExplorer.Tests
1616
{
17-
public static class TestClass
17+
public class TestClass
1818
{
1919
static TestClass()
2020
{
@@ -54,6 +54,12 @@ public static List<object> RandomList
5454
}
5555
}
5656

57+
public int this[int index]
58+
{
59+
get => UnityEngine.Random.Range(0, int.MaxValue);
60+
set => ExplorerCore.Log(index);
61+
}
62+
5763
// Test methods
5864

5965
private static object GetRandomObject()
@@ -87,11 +93,12 @@ public static void TestArgumentParse(string _string,
8793
Vector3 vector,
8894
Quaternion quaternion,
8995
object obj,
90-
Type type)
96+
Type type,
97+
GameObject go)
9198
{
9299
ExplorerCore.Log($"_string: {_string}, integer: {integer}, color: {color.ToString()}, flags: {flags}, " +
93100
$"vector: {vector.ToString()}, quaternion: {quaternion.ToString()}, obj: {obj?.ToString() ?? "null"}," +
94-
$"type: {type?.FullName ?? "null"}");
101+
$"type: {type?.FullName ?? "null"}, go: {go?.ToString() ?? "null"}");
95102
}
96103

97104
private static void Init_Mono()

0 commit comments

Comments
 (0)