Result.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
    void Start()
    {
        winner = GameObject.Find ("GameBrain").GetComponent<GameBrain>();
        loser = GameObject.Find ("GameBrain").GetComponent<GameBrain>();
    }

Usage Example

Ejemplo n.º 1
0
        private void RunAssemblyTearDown(TestAssembly testAssembly)
        {
            if (testAssembly.AssemblyTearDown == null)
            {
                return;
            }

            Result result = new Result(testAssembly.AssemblyTearDown.Name);

            System.Runtime.CompilerServices.RuntimeHelpers.PrepareConstrainedRegions();
            try
            {
                result.Start();
                testAssembly.AssemblyTearDown.Invoke(null, null);
                result.Success();
            }
            catch (Exception ex)
            {
                Exception current = ex;
                if (current is TargetInvocationException)
                {
                    current = current.InnerException;
                }
                if (current is QuickGraph.Unit.Exceptions.IgnoreException)
                {
                    result.Ignore();
                }
                else
                {
                    result.Fail(current);
                }
            }
            this.TestListeners.AssemblyTearDown(result);
        }