Files
Magical-Jumping-Bean/Library/metadata/8b/8bc74398aa3944646ade4ee78cd57484
T

145 lines
9.6 KiB
Plaintext
Raw Normal View History

2019-09-29 19:40:54 -04:00
í&€2019.2.3f1þÿÿÿÿÿ’3$øÌuñ옲e+ Í=^7€ÿÿÿÿ€¦€²€Ѐ¦€¦€¦€#¦€+H€3ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€ Q€j€
H€<ÿÿÿÿ €1€1€ÿÿÿÿ @Þ€€
Q€j€Õ€Iÿÿÿÿ€1€1€ÿÿÿÿÀÞ€€H€j€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€™€PAssetMetaDataguiddata[0]data[1]data[2]data[3]pathNameoriginalNamelabelsassetStoreRef ÿÿfš†!ë5˜9Ý4QÁóBí7€ÿÿÿÿ€¦€²€
E€ Þ€#€.€,€5a€ Þ€#€.€,€†€r€ Þ€# €.€,
€H€«€ÿÿÿÿ €1€1€ÿÿÿÿ @Þ€€
Q€j€ñ€JÿÿÿÿÀ1€1€ÿÿÿÿ€Þ€€€j€ÿÿÿÿ€\›€ÿÿÿÿ€H€rÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€H€wÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€H€€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€y€
€ Þ€#!€.€,"€€…ÿÿÿÿ#@1€1€ÿÿÿÿ$Þ€€%.€j€&Õ€“ÿÿÿÿ'€1€1€ÿÿÿÿ(ÀÞ€€)€j€ÿÿÿÿ*€H€›€ÿÿÿÿ+€1€1€ÿÿÿÿ,@Þ€€-Q€j€.y€
€ /Þ€#0€.€,1€ €§2@¾€¶ 3@Þ€#4€.€,5€H€»ÿÿÿÿ6€1€1€ÿÿÿÿ7@Þ€€8Q€j€9H€Æÿÿÿÿ:€1€1€ÿÿÿÿ;@Þ€€<Q€j€=H€Øÿÿÿÿ>€1€1€ÿÿÿÿ?@Þ€€@Q€j€AMonoImporterPPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>m_ExternalObjectsSourceAssetIdentifiertypeassemblynamem_UsedFileIDsm_DefaultReferencesexecutionOrdericonm_UserDatam_AssetBundleNamem_AssetBundleVariantsÿÿ£Gñ×Ü�Z56 :!@iÁJ*�€7€ÿÿÿÿ€¦€²€E€ Þ€€.€€(a€ Þ€€.€€†€r€ Þ€ €.€
€H€«€ÿÿÿÿ €1€1€ÿÿÿÿ @Þ€€
Q€j€H€ê€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€ñ€=ÿÿÿÿ€1€1€ÿÿÿÿ€Þ€€€j€ÿÿÿÿ€H€›€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€y€
€ Þ€€.€€y€Q Þ€€.€ €Þ€X!H€iÿÿÿÿ"€1€1€ÿÿÿÿ#@Þ€€$Q€j€%H€uÿÿÿÿ&€1€1€ÿÿÿÿ'@Þ€€(Q€j€)PPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>m_DefaultReferencesm_Iconm_ExecutionOrderm_ClassNamem_Namespace„ˆ\ày¯èˆ¸|4‰ª“DF¦íä~È]GHZPackages/com.unity.test-framework/UnityEngine.TestRunner/NUnitExtensions/TestExtensions.csày¯TestExtensionsóusing System.Collections.Generic;
using System.Linq;
using NUnit.Framework.Interfaces;
using NUnit.Framework.Internal;
using UnityEngine.TestRunner.NUnitExtensions.Filters;
namespace UnityEngine.TestRunner.NUnitExtensions
{
internal static class TestExtensions
{
private static IEnumerable<string> GetTestCategories(this ITest test)
{
var categories = test.Properties[PropertyNames.Category].Cast<string>().ToList();
if (categories.Count == 0 && test is TestMethod)
{
// only mark tests as Uncategorized if the test fixture doesn't have a category,
// otherwise the test inherits the Fixture category
var fixtureCategories = test.Parent.Properties[PropertyNames.Category].Cast<string>().ToList();
if (fixtureCategories.Count == 0)
categories.Add(CategoryFilterExtended.k_DefaultCategory);
}
return categories;
}
public static bool HasCategory(this ITest test, string[] categoryFilter)
{
var categories = test.GetAllCategoriesFromTest().Distinct();
return categoryFilter.Any(c => categories.Any(r => r == c));
}
public static List<string> GetAllCategoriesFromTest(this ITest test)
{
if (test.Parent == null)
return test.GetTestCategories().ToList();
var categories = GetAllCategoriesFromTest(test.Parent);
categories.AddRange(test.GetTestCategories());
return categories;
}
public static void ParseForNameDuplicates(this ITest test)
{
var duplicates = new Dictionary<string, int>();
for (var i = 0; i < test.Tests.Count; i++)
{
var child = test.Tests[i];
int count;
if (duplicates.TryGetValue(child.FullName, out count))
{
count++;
child.Properties.Add("childIndex", count);
duplicates[child.FullName] = count;
}
else
{
duplicates.Add(child.FullName, 1);
}
ParseForNameDuplicates(child);
}
}
public static int GetChildIndex(this ITest test)
{
var index = test.Properties["childIndex"];
return (int)index[0];
}
public static bool HasChildIndex(this ITest test)
{
var index = test.Properties["childIndex"];
return index.Count > 0;
}
static string GetAncestorPath(ITest test)
{
var path = "";
var testParent = test.Parent;
while (testParent != null && testParent.Parent != null && !string.IsNullOrEmpty(testParent.Name))
{
path = testParent.Name + "/" + path;
testParent = testParent.Parent;
}
return path;
}
public static string GetUniqueName(this ITest test)
{
var id = GetAncestorPath(test) + GetFullName(test);
if (test.HasChildIndex())
{
var index = test.GetChildIndex();
if (index >= 0)
id += index;
}
if (test.IsSuite)
{
id += "[suite]";
}
return id;
}
public static string GetFullName(ITest test)
{
if (test.TypeInfo == null && (test.Parent == null || test.Parent.TypeInfo == null))
{
return "[" + test.FullName + "]";
}
var assemblyId = test.TypeInfo == null ? test.Parent.TypeInfo.Assembly.GetName().Name : test.TypeInfo.Assembly.GetName().Name;
return string.Format("[{0}][{1}]", assemblyId, test.FullName);
}
public static string GetSkipReason(this ITest test)
{
if (test.Properties.ContainsKey(PropertyNames.SkipReason))
return (string)test.Properties.Get(PropertyNames.SkipReason);
return null;
}
public static string GetParentId(this ITest test)
{
if (test.Parent != null)
return test.Parent.Id;
return null;
}
public static string GetParentUniqueName(this ITest test)
{
if (test.Parent != null)
return GetUniqueName(test.Parent);
return null;