17 references to Assert
Microsoft.TestPlatform.TestHostRuntimeProvider (17)
Hosting\DefaultTestHostManager.cs (10)
124TPDebug.Assert(_testHostProcessStdError is not null, "LaunchTestHostAsync must have been called before ExitCallBack"); 125TPDebug.Assert(_testHostManagerCallbacks is not null, "Initialize must have been called before ExitCallBack"); 134TPDebug.Assert(_testHostProcessStdError is not null, "LaunchTestHostAsync must have been called before ErrorReceivedCallback"); 135TPDebug.Assert(_testHostManagerCallbacks is not null, "Initialize must have been called before ErrorReceivedCallback"); 144TPDebug.Assert(_testHostProcessStdOut is not null, "LaunchTestHostAsync must have been called before OutputReceivedCallback"); 145TPDebug.Assert(_testHostManagerCallbacks is not null, "Initialize must have been called before OutputReceivedCallback"); 176TPDebug.Assert(IsInitialized, "Initialize must have been called before GetTestHostProcessStartInfo"); 183TPDebug.Assert(currentWorkingDirectory is not null, "Current working directory must not be null."); 411TPDebug.Assert(_targetFramework is not null && _testHostProcess is not null, "Initialize and LaunchTestHostAsync must be called before AttachDebuggerToTestHost"); 428TPDebug.Assert(IsInitialized, "Initialize must be called before FilterExtensionsBasedOnVersion");
Hosting\DotnetTestHostManager.cs (7)
171TPDebug.Assert(_testHostProcessStdError is not null, "_testHostProcessStdError is null"); 180TPDebug.Assert(_testHostProcessStdError is not null, "_testHostProcessStdError is null"); 181TPDebug.Assert(_testHostManagerCallbacks is not null, "Initialize must have been called before ExitCallBack"); 190TPDebug.Assert(_testHostProcessStdOut is not null, "LaunchTestHostAsync must have been called before OutputReceivedCallback"); 191TPDebug.Assert(_testHostManagerCallbacks is not null, "Initialize must have been called before OutputReceivedCallback"); 237TPDebug.Assert(_targetFramework is not null, "_targetFramework is null"); 887TPDebug.Assert(_targetFramework is not null && _testHostProcess is not null, "DotnetTestHostManager: TargetFramework is null");