From e7ca87f25dae2f806469043ee556d4790d9ebcae Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 10 Mar 2020 03:04:23 +0800 Subject: ... --- Timeline.Tests/ErrorCodeTest.cs | 4 +-- .../Helpers/AsyncFunctionAssertionsExtensions.cs | 2 +- Timeline.Tests/Helpers/HttpClientExtensions.cs | 2 +- Timeline.Tests/Helpers/ImageHelper.cs | 2 +- Timeline.Tests/Helpers/ParameterInfoAssertions.cs | 2 +- Timeline.Tests/Helpers/ReflectionHelper.cs | 2 +- Timeline.Tests/Helpers/ResponseAssertions.cs | 6 ++-- Timeline.Tests/Helpers/TestApplication.cs | 6 ++-- .../IntegratedTests/AuthorizationTest.cs | 4 +-- .../IntegratedTests/IntegratedTestBase.cs | 8 +++--- .../IntegratedTests/PersonalTimelineTest.cs | 6 ++-- Timeline.Tests/IntegratedTests/TimelineTest.cs | 6 ++-- Timeline.Tests/IntegratedTests/TokenTest.cs | 8 +++--- Timeline.Tests/IntegratedTests/UserAvatarTest.cs | 8 +++--- Timeline.Tests/IntegratedTests/UserTest.cs | 6 ++-- Timeline.Tests/PasswordGenerator.cs | 4 +-- Timeline.Tests/Timeline.Tests.csproj | 33 ---------------------- Timeline.Tests/TimelineApp.Tests.csproj | 33 ++++++++++++++++++++++ Timeline.Tests/UsernameValidatorUnitTest.cs | 6 ++-- 19 files changed, 74 insertions(+), 74 deletions(-) delete mode 100644 Timeline.Tests/Timeline.Tests.csproj create mode 100644 Timeline.Tests/TimelineApp.Tests.csproj (limited to 'Timeline.Tests') diff --git a/Timeline.Tests/ErrorCodeTest.cs b/Timeline.Tests/ErrorCodeTest.cs index 258ebf4e..3f8c855c 100644 --- a/Timeline.Tests/ErrorCodeTest.cs +++ b/Timeline.Tests/ErrorCodeTest.cs @@ -3,11 +3,11 @@ using System; using System.Collections.Generic; using System.Linq; using System.Reflection; -using Timeline.Models.Http; +using TimelineApp.Models.Http; using Xunit; using Xunit.Abstractions; -namespace Timeline.Tests +namespace TimelineApp.Tests { public class ErrorCodeTest { diff --git a/Timeline.Tests/Helpers/AsyncFunctionAssertionsExtensions.cs b/Timeline.Tests/Helpers/AsyncFunctionAssertionsExtensions.cs index b78309c0..516c34e9 100644 --- a/Timeline.Tests/Helpers/AsyncFunctionAssertionsExtensions.cs +++ b/Timeline.Tests/Helpers/AsyncFunctionAssertionsExtensions.cs @@ -4,7 +4,7 @@ using FluentAssertions.Specialized; using System; using System.Threading.Tasks; -namespace Timeline.Tests.Helpers +namespace TimelineApp.Tests.Helpers { public static class AsyncFunctionAssertionsExtensions { diff --git a/Timeline.Tests/Helpers/HttpClientExtensions.cs b/Timeline.Tests/Helpers/HttpClientExtensions.cs index 6513bbe7..952266b3 100644 --- a/Timeline.Tests/Helpers/HttpClientExtensions.cs +++ b/Timeline.Tests/Helpers/HttpClientExtensions.cs @@ -6,7 +6,7 @@ using System.Net.Mime; using System.Text; using System.Threading.Tasks; -namespace Timeline.Tests.Helpers +namespace TimelineApp.Tests.Helpers { public static class HttpClientExtensions { diff --git a/Timeline.Tests/Helpers/ImageHelper.cs b/Timeline.Tests/Helpers/ImageHelper.cs index 9bed0917..ffbb38ae 100644 --- a/Timeline.Tests/Helpers/ImageHelper.cs +++ b/Timeline.Tests/Helpers/ImageHelper.cs @@ -3,7 +3,7 @@ using SixLabors.ImageSharp.Formats; using SixLabors.ImageSharp.PixelFormats; using System.IO; -namespace Timeline.Tests.Helpers +namespace TimelineApp.Tests.Helpers { public static class ImageHelper { diff --git a/Timeline.Tests/Helpers/ParameterInfoAssertions.cs b/Timeline.Tests/Helpers/ParameterInfoAssertions.cs index d3e5a41e..a714f410 100644 --- a/Timeline.Tests/Helpers/ParameterInfoAssertions.cs +++ b/Timeline.Tests/Helpers/ParameterInfoAssertions.cs @@ -5,7 +5,7 @@ using FluentAssertions.Primitives; using System; using System.Reflection; -namespace Timeline.Tests.Helpers +namespace TimelineApp.Tests.Helpers { public class ParameterInfoValueFormatter : IValueFormatter { diff --git a/Timeline.Tests/Helpers/ReflectionHelper.cs b/Timeline.Tests/Helpers/ReflectionHelper.cs index 3f6036e3..16d68bb1 100644 --- a/Timeline.Tests/Helpers/ReflectionHelper.cs +++ b/Timeline.Tests/Helpers/ReflectionHelper.cs @@ -1,7 +1,7 @@ using System.Linq; using System.Reflection; -namespace Timeline.Tests.Helpers +namespace TimelineApp.Tests.Helpers { public static class ReflectionHelper { diff --git a/Timeline.Tests/Helpers/ResponseAssertions.cs b/Timeline.Tests/Helpers/ResponseAssertions.cs index f01a0677..4984d224 100644 --- a/Timeline.Tests/Helpers/ResponseAssertions.cs +++ b/Timeline.Tests/Helpers/ResponseAssertions.cs @@ -9,10 +9,10 @@ using System.Net.Http; using System.Text; using System.Text.Json; using System.Text.Json.Serialization; -using Timeline.Models.Converters; -using Timeline.Models.Http; +using TimelineApp.Models.Converters; +using TimelineApp.Models.Http; -namespace Timeline.Tests.Helpers +namespace TimelineApp.Tests.Helpers { public class HttpResponseMessageValueFormatter : IValueFormatter { diff --git a/Timeline.Tests/Helpers/TestApplication.cs b/Timeline.Tests/Helpers/TestApplication.cs index 52c2f2e2..c655d337 100644 --- a/Timeline.Tests/Helpers/TestApplication.cs +++ b/Timeline.Tests/Helpers/TestApplication.cs @@ -6,10 +6,10 @@ using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.IO; -using Timeline.Entities; -using Timeline.Migrations; +using TimelineApp.Entities; +using TimelineApp.Migrations; -namespace Timeline.Tests.Helpers +namespace TimelineApp.Tests.Helpers { public class TestApplication : IDisposable { diff --git a/Timeline.Tests/IntegratedTests/AuthorizationTest.cs b/Timeline.Tests/IntegratedTests/AuthorizationTest.cs index 4aa6b3ae..69be9187 100644 --- a/Timeline.Tests/IntegratedTests/AuthorizationTest.cs +++ b/Timeline.Tests/IntegratedTests/AuthorizationTest.cs @@ -2,10 +2,10 @@ using FluentAssertions; using Microsoft.AspNetCore.Mvc.Testing; using System.Net; using System.Threading.Tasks; -using Timeline.Tests.Helpers; +using TimelineApp.Tests.Helpers; using Xunit; -namespace Timeline.Tests.IntegratedTests +namespace TimelineApp.Tests.IntegratedTests { public class AuthorizationTest : IntegratedTestBase { diff --git a/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs b/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs index dfde2ea5..e265c16e 100644 --- a/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs +++ b/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs @@ -5,12 +5,12 @@ using System; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; -using Timeline.Models.Http; -using Timeline.Services; -using Timeline.Tests.Helpers; +using TimelineApp.Models.Http; +using TimelineApp.Services; +using TimelineApp.Tests.Helpers; using Xunit; -namespace Timeline.Tests.IntegratedTests +namespace TimelineApp.Tests.IntegratedTests { public abstract class IntegratedTestBase : IClassFixture>, IDisposable { diff --git a/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs b/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs index 7d0a68e8..b6d3e827 100644 --- a/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs +++ b/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs @@ -5,11 +5,11 @@ using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; -using Timeline.Models.Http; -using Timeline.Tests.Helpers; +using TimelineApp.Models.Http; +using TimelineApp.Tests.Helpers; using Xunit; -namespace Timeline.Tests.IntegratedTests +namespace TimelineApp.Tests.IntegratedTests { public class PersonalTimelineTest : IntegratedTestBase { diff --git a/Timeline.Tests/IntegratedTests/TimelineTest.cs b/Timeline.Tests/IntegratedTests/TimelineTest.cs index 14a0a59e..cad74e6c 100644 --- a/Timeline.Tests/IntegratedTests/TimelineTest.cs +++ b/Timeline.Tests/IntegratedTests/TimelineTest.cs @@ -6,11 +6,11 @@ using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; -using Timeline.Models.Http; -using Timeline.Tests.Helpers; +using TimelineApp.Models.Http; +using TimelineApp.Tests.Helpers; using Xunit; -namespace Timeline.Tests.IntegratedTests +namespace TimelineApp.Tests.IntegratedTests { public class TimelineTest : IntegratedTestBase { diff --git a/Timeline.Tests/IntegratedTests/TokenTest.cs b/Timeline.Tests/IntegratedTests/TokenTest.cs index 928d546c..10af46af 100644 --- a/Timeline.Tests/IntegratedTests/TokenTest.cs +++ b/Timeline.Tests/IntegratedTests/TokenTest.cs @@ -4,12 +4,12 @@ using Microsoft.Extensions.DependencyInjection; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; -using Timeline.Models.Http; -using Timeline.Services; -using Timeline.Tests.Helpers; +using TimelineApp.Models.Http; +using TimelineApp.Services; +using TimelineApp.Tests.Helpers; using Xunit; -namespace Timeline.Tests.IntegratedTests +namespace TimelineApp.Tests.IntegratedTests { public class TokenTest : IntegratedTestBase { diff --git a/Timeline.Tests/IntegratedTests/UserAvatarTest.cs b/Timeline.Tests/IntegratedTests/UserAvatarTest.cs index fa0120f1..8fd1d687 100644 --- a/Timeline.Tests/IntegratedTests/UserAvatarTest.cs +++ b/Timeline.Tests/IntegratedTests/UserAvatarTest.cs @@ -13,12 +13,12 @@ using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; -using Timeline.Models.Http; -using Timeline.Services; -using Timeline.Tests.Helpers; +using TimelineApp.Models.Http; +using TimelineApp.Services; +using TimelineApp.Tests.Helpers; using Xunit; -namespace Timeline.Tests.IntegratedTests +namespace TimelineApp.Tests.IntegratedTests { public class UserAvatarTest : IntegratedTestBase { diff --git a/Timeline.Tests/IntegratedTests/UserTest.cs b/Timeline.Tests/IntegratedTests/UserTest.cs index 8ce76299..eed13565 100644 --- a/Timeline.Tests/IntegratedTests/UserTest.cs +++ b/Timeline.Tests/IntegratedTests/UserTest.cs @@ -4,11 +4,11 @@ using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Threading.Tasks; -using Timeline.Models.Http; -using Timeline.Tests.Helpers; +using TimelineApp.Models.Http; +using TimelineApp.Tests.Helpers; using Xunit; -namespace Timeline.Tests.IntegratedTests +namespace TimelineApp.Tests.IntegratedTests { public class UserTest : IntegratedTestBase { diff --git a/Timeline.Tests/PasswordGenerator.cs b/Timeline.Tests/PasswordGenerator.cs index 6c07836b..bb6c538d 100644 --- a/Timeline.Tests/PasswordGenerator.cs +++ b/Timeline.Tests/PasswordGenerator.cs @@ -1,9 +1,9 @@ using System; -using Timeline.Services; +using TimelineApp.Services; using Xunit; using Xunit.Abstractions; -namespace Timeline.Tests +namespace TimelineApp.Tests { public class PasswordGenerator { diff --git a/Timeline.Tests/Timeline.Tests.csproj b/Timeline.Tests/Timeline.Tests.csproj deleted file mode 100644 index 00c1e103..00000000 --- a/Timeline.Tests/Timeline.Tests.csproj +++ /dev/null @@ -1,33 +0,0 @@ - - - - netcoreapp3.1 - - 8.0 - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - all - runtime; build; native; contentfiles; analyzers - - - - - - - diff --git a/Timeline.Tests/TimelineApp.Tests.csproj b/Timeline.Tests/TimelineApp.Tests.csproj new file mode 100644 index 00000000..1f445f8b --- /dev/null +++ b/Timeline.Tests/TimelineApp.Tests.csproj @@ -0,0 +1,33 @@ + + + + netcoreapp3.1 + + 8.0 + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + all + runtime; build; native; contentfiles; analyzers + + + + + + + diff --git a/Timeline.Tests/UsernameValidatorUnitTest.cs b/Timeline.Tests/UsernameValidatorUnitTest.cs index 8824362b..f436c091 100644 --- a/Timeline.Tests/UsernameValidatorUnitTest.cs +++ b/Timeline.Tests/UsernameValidatorUnitTest.cs @@ -1,9 +1,9 @@ using FluentAssertions; -using Timeline.Models.Validation; -using Timeline.Tests.Helpers; +using TimelineApp.Models.Validation; +using TimelineApp.Tests.Helpers; using Xunit; -namespace Timeline.Tests +namespace TimelineApp.Tests { public class UsernameValidatorUnitTest : IClassFixture { -- cgit v1.2.3