diff --git a/src/Platform/Microsoft.Testing.Platform/Messages/TestNodeProperties.cs b/src/Platform/Microsoft.Testing.Platform/Messages/TestNodeProperties.cs index 1f68d42a5bd..01eb459e07d 100644 --- a/src/Platform/Microsoft.Testing.Platform/Messages/TestNodeProperties.cs +++ b/src/Platform/Microsoft.Testing.Platform/Messages/TestNodeProperties.cs @@ -306,11 +306,23 @@ public sealed record TestFileLocationProperty(string FilePath, LinePositionSpan public sealed record TestMethodIdentifierProperty(string AssemblyFullName, string Namespace, string TypeName, string MethodName, string[] ParameterTypeFullNames, string ReturnTypeFullName) : IProperty; /// -/// Property that represents a generic test metadata property. +/// Initializes a new instance of the class. +/// Property that represents a generic test metadata property in the shape of a key-value pair associated with a . /// -/// Key name. -/// Value name. -public sealed record TestMetadataProperty(string Key, string Value) : IProperty; +/// The metadata key. +/// The metadata value. +public sealed record TestMetadataProperty(string Key, string Value) : IProperty +{ + /// + /// Initializes a new instance of the class. + /// Property that represents a generic test metadata property in the shape of a value associated with a . + /// + /// The metadata key. + public TestMetadataProperty(string key) + : this(key, string.Empty) + { + } +} /// /// Property that represents standard output to associate with a test node. diff --git a/src/Platform/Microsoft.Testing.Platform/PublicAPI/PublicAPI.Unshipped.txt b/src/Platform/Microsoft.Testing.Platform/PublicAPI/PublicAPI.Unshipped.txt index b492d816aab..96d3604bb57 100644 --- a/src/Platform/Microsoft.Testing.Platform/PublicAPI/PublicAPI.Unshipped.txt +++ b/src/Platform/Microsoft.Testing.Platform/PublicAPI/PublicAPI.Unshipped.txt @@ -1,4 +1,5 @@ #nullable enable +Microsoft.Testing.Platform.Extensions.Messages.TestMetadataProperty.TestMetadataProperty(string! key) -> void [TPEXP]Microsoft.Testing.Platform.Extensions.Messages.StandardOutputProperty [TPEXP]Microsoft.Testing.Platform.Extensions.Messages.StandardOutputProperty.StandardOutput.get -> string! [TPEXP]Microsoft.Testing.Platform.Extensions.Messages.StandardOutputProperty.StandardOutput.init -> void