Initial Commit

This commit is contained in:
2026-03-16 14:38:46 +02:00
commit b8f7327a21
2327 changed files with 253610 additions and 0 deletions
@@ -0,0 +1,34 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using ModestTree;
using Assert=ModestTree.Assert;
namespace Zenject.Tests
{
public static class TestListComparer
{
public static bool ContainSameElements(IEnumerable listA, IEnumerable listB)
{
return ContainSameElementsInternal(listA.Cast<object>().ToList(), listB.Cast<object>().ToList());
}
static bool ContainSameElementsInternal(
List<object> listA, List<object> listB)
{
// We don't care how they are sorted as long as they are sorted the same way so just use hashcode
Comparison<object> comparer = (object left, object right) => (left.GetHashCode().CompareTo(right.GetHashCode()));
listA.Sort(comparer);
listB.Sort(comparer);
return Enumerable.SequenceEqual(listA, listB);
}
public static string PrintList<T>(List<T> list)
{
return list.Select(x => x.ToString()).ToArray().Join(",");
}
}
}
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: bf5f121e858986e43bb2591c885b5507
timeCreated: 1461708053
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: