using NUnit.Framework; using Robust.Packaging.AssetProcessing; namespace Robust.Packaging.Tests; /// /// Helper class for testing . /// public static class AssetPassTest { /// /// Make an asset pass write into a and resolve the graph. /// /// /// The resolved graph logs to the NUnit test context. /// public static AssetPassTestCollector SetupTestPass(AssetPass testedPass) { var logger = new PackageLoggerNUnit(TestContext.Out); var collectorPass = new AssetPassTestCollector(); collectorPass.AddDependency(testedPass); AssetGraph.CalculateGraph([testedPass, collectorPass], logger); return collectorPass; } }