Add key only overload to TestMetadataProperty (#4041)

This commit is contained in:
Amaury Levé 2024-11-12 10:17:40 +01:00 коммит произвёл GitHub
Родитель be23aac745
Коммит 7811c0d3c0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 17 добавлений и 4 удалений

Просмотреть файл

@ -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;
/// <summary>
/// Property that represents a generic test metadata property.
/// Initializes a new instance of the <see cref="TestMetadataProperty"/> class.
/// Property that represents a generic test metadata property in the shape of a key-value pair associated with a <see cref="TestNode"/>.
/// </summary>
/// <param name="Key">Key name.</param>
/// <param name="Value">Value name.</param>
public sealed record TestMetadataProperty(string Key, string Value) : IProperty;
/// <param name="Key">The metadata key.</param>
/// <param name="Value">The metadata value.</param>
public sealed record TestMetadataProperty(string Key, string Value) : IProperty
{
/// <summary>
/// Initializes a new instance of the <see cref="TestMetadataProperty"/> class.
/// Property that represents a generic test metadata property in the shape of a value associated with a <see cref="TestNode"/>.
/// </summary>
/// <param name="key">The metadata key.</param>
public TestMetadataProperty(string key)
: this(key, string.Empty)
{
}
}
/// <summary>
/// Property that represents standard output to associate with a test node.

Просмотреть файл

@ -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