public void Initialize() { if (AssetManager.Instance.findAssetsByClass("PlayerProfilingAsset").Count == 0) { #warning change bridge implementation (in UnitTestPlayerProfiler/Bridge.cs) for testing (IDataStoragePath and ILog - logging behaviour) //Adding the bridge AssetManager.Instance.Bridge = new Bridge(); //creating the asset PlayerProfilingAsset ppa = PlayerProfilingAsset.Instance; } }
static void Main(string[] args) { AssetManager am = AssetManager.Instance; am.Bridge = new Bridge(); PlayerProfilingAsset ppa = PlayerProfilingAsset.Instance; TestPlayProfilingAsset tppa = new TestPlayProfilingAsset(); tppa.performAllTests(); Console.WriteLine("Press enter to exit..."); Console.ReadLine(); }