-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUserIntegrationTests.cs
More file actions
executable file
·30 lines (26 loc) · 999 Bytes
/
Copy pathUserIntegrationTests.cs
File metadata and controls
executable file
·30 lines (26 loc) · 999 Bytes
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
using System.Collections.Generic;
using System.Threading.Tasks;
using ConfIT;
using ConfIT.Extension;
using ConfIT.Reader;
using Newtonsoft.Json.Linq;
using Xunit;
using Xunit.Abstractions;
namespace User.IntegrationTests
{
public class UserIntegrationTests : BaseTest, IClassFixture<TestSuiteFixture>
{
public UserIntegrationTests(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(fileName, "TestCase");
public static IEnumerable<object[]> GetTestCasesForFolder(string folder) =>
TestReader.GetTestsForAFolder(folder);
}
}