25 references to Constants
Microsoft.TestPlatform.Extensions.BlameDataCollector (25)
BlameCollector.cs (14)
152
if (_configurationElement[
Constants
.DumpModeKey] is XmlElement collectDumpNode)
174
if (_configurationElement[
Constants
.CollectDumpOnTestSessionHang] is XmlElement collectHangBasedDumpNode)
187
_monitorPostmortemDumpFolder = _configurationElement[
Constants
.MonitorPostmortemDebugger] is XmlElement monitorPostmortemNode &&
191
var tfm = _configurationElement[
Constants
.TargetFramework]?.InnerText;
355
case XmlAttribute attribute when string.Equals(attribute.Name,
Constants
.CollectDumpAlwaysKey, StringComparison.OrdinalIgnoreCase):
357
if ((!string.Equals(attribute.Value,
Constants
.TrueConfigurationValue, StringComparison.OrdinalIgnoreCase)
358
&& !string.Equals(attribute.Value,
Constants
.FalseConfigurationValue, StringComparison.OrdinalIgnoreCase))
361
_logger.LogWarning(_context.SessionDataCollectionContext, FormatBlameParameterValueIncorrectMessage(attribute, [
Constants
.TrueConfigurationValue,
Constants
.FalseConfigurationValue]));
366
case XmlAttribute attribute when string.Equals(attribute.Name,
Constants
.DumpTypeKey, StringComparison.OrdinalIgnoreCase):
399
case XmlAttribute attribute when string.Equals(attribute.Name,
Constants
.TestTimeout, StringComparison.OrdinalIgnoreCase):
413
case XmlAttribute attribute when string.Equals(attribute.Name,
Constants
.HangDumpTypeKey, StringComparison.OrdinalIgnoreCase):
427
case XmlAttribute attribute when string.Equals(attribute.Name,
Constants
.DumpTypeKey, StringComparison.OrdinalIgnoreCase):
511
var filepath = Path.Combine(GetTempDirectory(),
Constants
.AttachmentFileName + "_" + _attachmentGuid);
BlameLogger.cs (1)
127
if (!attachmentSet.DisplayName.Equals(
Constants
.BlameDataCollectorName))
XmlReaderWriter.cs (10)
70
var blameTestRoot = xmlDocument.CreateElement(
Constants
.BlameRootNode);
79
var testElement = xmlDocument.CreateElement(
Constants
.BlameTestNode);
80
testElement.SetAttribute(
Constants
.TestNameAttribute, testObject.FullyQualifiedName);
81
testElement.SetAttribute(
Constants
.TestDisplayNameAttribute, testObject.DisplayName);
82
testElement.SetAttribute(
Constants
.TestSourceAttribute, testObject.Source);
83
testElement.SetAttribute(
Constants
.TestCompletedAttribute, testObject.IsCompleted.ToString());
138
node.Attributes[
Constants
.TestNameAttribute]?.Value,
139
Source = node.Attributes[
Constants
.TestSourceAttribute]?.Value,
140
DisplayName = node.Attributes[
Constants
.TestDisplayNameAttribute]?.Value,
141
IsCompleted = node.Attributes[
Constants
.TestCompletedAttribute]?.Value == "True"