public ITeamCityTestWriter OpenTest(string testName)
        {
            AssertNoChildOpened();

            myIsChildTestOpened++;
            var writer = new TeamCityTestWriter(myTarget, testName, new DisposableDelegate(() => { myIsChildTestOpened--; }));

            writer.OpenTest();
            return(writer);
        }
Example #2
0
        public ITeamCityTestWriter OpenTest(string testName)
        {
            if (testName == null)
            {
                throw new ArgumentNullException(nameof(testName));
            }
            AssertNoChildOpened();

            _isChildTestOpened++;
            var writer = new TeamCityTestWriter(myTarget, testName, new DisposableDelegate(() => { _isChildTestOpened--; }));

            writer.OpenTest();
            return(writer);
        }