diff options
author | crupest <crupest@outlook.com> | 2021-05-15 22:31:59 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-05-15 22:31:59 +0800 |
commit | b10261186393aacf6cf07491d322f0224c94158f (patch) | |
tree | 87ba89ba67f4d938b06e3b0cb08b3960a90c3675 /BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs | |
parent | 2a3c2d60cadbae348632ad9f2023367c5ea1e905 (diff) | |
download | timeline-b10261186393aacf6cf07491d322f0224c94158f.tar.gz timeline-b10261186393aacf6cf07491d322f0224c94158f.tar.bz2 timeline-b10261186393aacf6cf07491d322f0224c94158f.zip |
test: Use xunit logging output.
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs')
-rw-r--r-- | BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs b/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs index 259ebfa1..68d52b19 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs @@ -8,6 +8,7 @@ using Timeline.Models.Http; using Timeline.Services.User;
using Timeline.Tests.Helpers;
using Xunit;
+using Xunit.Abstractions;
namespace Timeline.Tests.IntegratedTests
{
@@ -17,19 +18,19 @@ namespace Timeline.Tests.IntegratedTests protected int TestUserCount { get; }
- public IntegratedTestBase() : this(1)
+ public IntegratedTestBase(ITestOutputHelper testOutputHelper) : this(1, testOutputHelper)
{
}
- public IntegratedTestBase(int userCount)
+ public IntegratedTestBase(int userCount, ITestOutputHelper testOutputHelper)
{
if (userCount < 0)
throw new ArgumentOutOfRangeException(nameof(userCount), userCount, "User count can't be negative.");
TestUserCount = userCount;
- TestApp = new TestApplication();
+ TestApp = new TestApplication(testOutputHelper);
}
protected virtual Task OnInitializeAsync()
|