// Use this for initialization void Start() { controller = FindObjectOfType <FrameworkController>(); source = GetComponent <AudioSource>(); if (controller != null) { source.Play(); } else { Debug.Log("Framework controller not found. Are you starting from MainMenu Scene?"); } }
// Use this for initialization void Start() { controller = FindObjectOfType <FrameworkController>(); source = GetComponent <AudioSource>(); target = GameObject.FindGameObjectWithTag("Player"); if (controller != null) { source.Play(); } else { Debug.Log("Framework controller not found. Are you starting from MainMenu Scene?"); } DopplerSlider.value = source.spatialBlend; }
// Use this for initialization void Start() { controller = FindObjectOfType <FrameworkController>(); source = GetComponent <AudioSource>(); if (controller != null) { source.Play(); } else { Debug.Log("Framework controller not found. Are you starting from MainMenu Scene?"); } audioProgress.maxValue = source.clip.length; audioProgress.minValue = 0; }
private void WriteXmlResultOutput(ITestResult result, XmlWriter xmlWriter, IDictionary <string, object> runSettings, TestFilter filter) { TNode resultNode = result.ToXml(true); // Insert elements as first child in reverse order if (runSettings != null) // Some platforms don't have settings { FrameworkController.InsertSettingsElement(resultNode, runSettings); } FrameworkController.InsertEnvironmentElement(resultNode); TNode testRun = MakeTestRunElement(result); testRun.ChildNodes.Add(MakeCommandLineElement()); testRun.ChildNodes.Add(MakeTestFilterElement(filter)); testRun.ChildNodes.Add(resultNode); testRun.WriteTo(xmlWriter); }
public void CreateResult() { var mockAssembly = typeof(MockAssembly).Assembly; var frameworkSettings = new Dictionary <string, object> { { "TestParameters", "1=d;2=c" }, { "TestParametersDictionary", new Dictionary <string, string> { { "1", "d" }, { "2", "c" } } } }; var controller = new FrameworkController(mockAssembly, "id", frameworkSettings); controller.LoadTests(); var xmlText = controller.RunTests(null); var engineResult = AddMetadata(new TestEngineResult(xmlText)); _result = engineResult.Xml; Assert.NotNull(_result, "Unable to create report result."); }
#pragma warning restore 0649 // Use this for initialization void Start() { fc = FindObjectOfType <FrameworkController>(); }