File: Adapter\Interfaces\ITestCaseFilterExpression.cs
Web Access
Project: src\src\vstest\src\Microsoft.TestPlatform.ObjectModel\Microsoft.TestPlatform.ObjectModel.csproj (Microsoft.VisualStudio.TestPlatform.ObjectModel)
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;

namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;

/// <summary>
/// It represents expression for filtering test cases.
/// </summary>
public interface ITestCaseFilterExpression
{
    /// <summary>
    /// Gets original string for test case filter.
    /// </summary>
    string TestCaseFilterValue { get; }

    /// <summary>
    /// Matched test case with test case filtering criteria.
    /// </summary>
    bool MatchTestCase(TestCase testCase, Func<string, object?> propertyValueProvider);
}