コード例 #1
0
        // PUBLIC METHODS ///////////////////////////////////////////////////
        #region IXUnitTest Implementation
        public void Execute(XUnitTests xUnitTests)
        {
            xUnitTests.WriteLine("Test Name: {0}", this.Name);
            xUnitTests.WriteDoubleDashedLine();
            xUnitTests.WriteLine();

            foreach (var unitTest in this.UnitTestCollection)
            {
                unitTest.Execute(xUnitTests);
                xUnitTests.WriteDashedLine();
                xUnitTests.WriteLine();
            }
        }
コード例 #2
0
        // PUBLIC METHODS ///////////////////////////////////////////////////
        #region IXUnitTestAsync Implementation
        public async Task ExecuteAsync(XUnitTests xUnitTests)
        {
            this.XUnitTests = xUnitTests;

            this.WriteLine("Test Name: {0}", this.Name);
            this.WriteLine();

            await this.ArrangeAsync();

            await this.ActAsync();

            await this.AssertAsync();
        }