-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUserComponentTests.cs
More file actions
executable file
·31 lines (27 loc) · 1 KB
/
Copy pathUserComponentTests.cs
File metadata and controls
executable file
·31 lines (27 loc) · 1 KB
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
using System.Collections.Generic;
using System.Threading.Tasks;
using ConfIT;
using ConfIT.Extension;
using ConfIT.Reader;
using Newtonsoft.Json.Linq;
using User.ComponentTests.SetUp;
using Xunit;
using Xunit.Abstractions;
namespace User.ComponentTests
{
public class UserComponentTests : BaseTest, IClassFixture<TestSuiteFixture>
{
public UserComponentTests(TestSuiteFixture fixture, ITestOutputHelper output)
: base(fixture.Context, new TestOutputLogger(output))
{
}
[Theory]
[MemberData(nameof(GetTestCasesForFolder), "TestCase")]
public async Task ExecuteTest(string testName, JToken test, string sourceFile) =>
await Execute(testName, test, sourceFile);
public static IEnumerable<object[]> GetTestCases(string fileName) =>
TestReader.GetTestsForAFile("TestCase", fileName);
public static IEnumerable<object[]> GetTestCasesForFolder(string folder) =>
TestReader.GetTestsForAFolder(folder);
}
}