3 instantiations of Trait
Microsoft.TestPlatform.CommunicationUtilities (1)
_generated\67\TestPlatformJsonContext.Trait.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait((string)args[0], (string)args[1]),
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
TraitCollection.cs (2)
45Add(new Trait(name, value)); 77traits[i] = new Trait(traitsKvp[i]);
37 references to Trait
Microsoft.TestPlatform.CommunicationUtilities (24)
_generated\112\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (1)
290if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait))
_generated\67\TestPlatformJsonContext.Trait.g.cs (21)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait>? _Trait; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait> Trait 22get => _Trait ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait> Create_Trait(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(string)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait), 60Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait)obj).Name, 61Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait)obj).Name = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 80DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait), 82Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait)obj).Value, 83Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait)obj).Value = value!, 90AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 102private void TraitSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait? value) 112writer.WriteString(PropName_Name, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait)value).Name); 113writer.WriteString(PropName_Value, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait)value).Value);
_generated\68\TestPlatformJsonContext.TraitCollection.g.cs (2)
37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TraitCollection, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait>(options, info); 57foreach (global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait element in value)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
Utility\Converter.cs (2)
563Trait? priorityTrait = rockSteadyTestCase.Traits?.FirstOrDefault(t => t.Name.Equals("Priority")); 579Trait? ownerTrait = rockSteadyTestCase.Traits?.FirstOrDefault(t => t.Name.Equals("Owner"));
Microsoft.VisualStudio.TestPlatform.ObjectModel (9)
TraitCollection.cs (9)
15public class TraitCollection : IEnumerable<Trait> 36public void Add(Trait trait) 48public void AddRange(IEnumerable<Trait> traits) 55public IEnumerator<Trait> GetEnumerator() 66private IEnumerable<Trait> GetTraits() 70return Array.Empty<Trait>(); 74var traits = new Trait[traitsKvp.Length]; 83private void Add(IEnumerable<Trait> traits, IEnumerable<Trait> newTraits)
vstest.console (1)
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
371foreach (var trait in traits)
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
371foreach (var trait in traits)