public class TestContextManager extends Object
| Constructor and Description |
|---|
TestContextManager(Method testMethod,
TestMode testMode)
Constructs a
TestContextManager based on the test method. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
didTestRun()
Returns whether the current test was ran.
|
boolean |
doNotRecordTest()
Returns whether the test should have its network calls recorded during a
record test
run. |
TestMode |
getTestMode()
Returns the mode being used to run tests.
|
String |
getTestName()
Returns the name of the test being ran.
|
public TestContextManager(Method testMethod, TestMode testMode)
TestContextManager based on the test method.testMethod - Test method being ran.testMode - The TestMode the test is running in.public String getTestName()
public TestMode getTestMode()
TestMode being used to run tests.public boolean doNotRecordTest()
record test
run.public boolean didTestRun()
Copyright © 2020 Microsoft Corporation. All rights reserved.