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