TestContext Property

TestContext Property
1. Create property 'TestContext' in all your test classes.
2. Automatically created by unit test frame work.
3. Set before each test is run.
4. Useful for accessing test information.
5. Useful in data-driven tests.

        public TestContext TestContext { get; set; }
        TestContext.WriteLine("Creating the file: " + _GoodFileName);

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章