// 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.Logging;
/// <summary>
/// Event arguments used for raising Test Result events.
/// </summary>
public class TestResultEventArgs : EventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="TestResultEventArgs"/> class.
/// </summary>
/// <param name="result">
/// Test Result for the event.
/// </param>
public TestResultEventArgs(TestResult result)
{
Result = result ?? throw new ArgumentNullException(nameof(result));
}
/// <summary>
/// Gets the Test Result.
/// </summary>
public TestResult Result { get; private set; }
}
|