forked from microsoft/qsharp-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOperationDriverAttribute.cs
35 lines (30 loc) · 1.19 KB
/
OperationDriverAttribute.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using Xunit.Abstractions;
using Microsoft.Quantum.Simulation.Core;
using Xunit.Sdk;
using Xunit;
namespace Microsoft.Quantum.Simulation.XUnit
{
[XunitTestCaseDiscoverer("Microsoft.Quantum.Simulation.XUnit.TestCaseDiscoverer", "Microsoft.Quantum.Xunit")]
public class OperationDriverAttribute : FactAttribute
{
/// <summary>
/// Suffix of the operation name that signifies that given operation is a test. Defaults to Test.
/// </summary>
public string Suffix { get; set; } = "Test";
/// <summary>
/// Assembly where look for the test cases. Defaults to the assembly in which test method is defined.
/// </summary>
public string AssemblyName { get; set; }
/// <summary>
/// Namespace where we look for the test cases. Defaults to the namespace in which test method is defined.
/// </summary>
public string TestNamespace { get; set; }
/// <summary>
/// A string to prepend to the test case name
/// </summary>
public string TestCasePrefix { get; set; }
}
}