Skip to content

Commit

Permalink
core: relocate test classes (#9817)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngosang committed Oct 12, 2020
1 parent 056605e commit 2654ba8
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 16 deletions.
Expand Up @@ -7,7 +7,7 @@
using YamlDotNet.Serialization.NamingConventions;
using Assert = NUnit.Framework.Assert;

namespace Jackett.Test.Definitions
namespace Jackett.Test.Common.Definitions
{
[TestFixture]
public class DefinitionsParserTests
Expand Down
Expand Up @@ -8,7 +8,7 @@
using NUnit.Framework;
using Assert = NUnit.Framework.Assert;

namespace Jackett.Test.Models
namespace Jackett.Test.Common.Models
{
class TestIndexer : BaseIndexer
{
Expand Down
Expand Up @@ -6,7 +6,7 @@
using Assert = NUnit.Framework.Assert;
using CollectionAssert = NUnit.Framework.CollectionAssert;

namespace Jackett.Test.Utils
namespace Jackett.Test.Common.Utils
{
[TestFixture]
public class CookieUtilTests
Expand Down
@@ -1,8 +1,9 @@
using System;
using System.Collections.Generic;
using Jackett.Common.Utils;
using NUnit.Framework;

namespace Jackett.Common.Utils.Tests
namespace Jackett.Test.Common.Utils
{
[TestFixture]
public class DateTimeUtilTests
Expand Down
File renamed without changes.
Expand Up @@ -6,7 +6,7 @@
using Jackett.Common.Utils;
using NUnit.Framework;

namespace Jackett.Test.Util
namespace Jackett.Test.Common.Utils
{
[TestFixture]
public class ParseUtilTests
Expand Down
Expand Up @@ -2,7 +2,7 @@
using Jackett.Common.Utils.Clients;
using NUnit.Framework;

namespace Jackett.Test.Util
namespace Jackett.Test.Common.Utils
{
[TestFixture]
internal class ServerUtilTests : TestBase
Expand Down
Expand Up @@ -2,9 +2,10 @@
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using Jackett.Common.Utils;
using NUnit.Framework;

namespace Jackett.Common.Utils.Tests
namespace Jackett.Test.Common.Utils
{
[TestFixture]
public class StringUtilTests
Expand Down
@@ -1,7 +1,7 @@
using Jackett.Common.Utils;
using NUnit.Framework;

namespace Jackett.Test.Util
namespace Jackett.Test.Common.Utils
{
[TestFixture]
internal class ParseTvShowQualityTest : TestBase
Expand Down
9 changes: 4 additions & 5 deletions src/Jackett.Test/Jackett.Test.csproj
Expand Up @@ -10,15 +10,12 @@
<ItemGroup>
<Compile Remove="Indexers\**" />
<EmbeddedResource Remove="Indexers\**" />
<EmbeddedResource Include="Common\Utils\Invalid-RSS.xml" />
<None Remove="Indexers\**" />
</ItemGroup>

<ItemGroup>
<None Remove="Util\Invalid-RSS.xml" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Util\Invalid-RSS.xml" />
<None Remove="Common\Utils\Invalid-RSS.xml" />
</ItemGroup>

<ItemGroup>
Expand All @@ -39,7 +36,9 @@
</ItemGroup>

<ItemGroup>
<Folder Include="Common" />
<Folder Include="Properties\" />
<Folder Include="Server" />
</ItemGroup>

<ItemGroup>
Expand Down
Expand Up @@ -3,19 +3,18 @@
using Jackett.Common.Services.Interfaces;
using NUnit.Framework;

namespace Jackett.Test.Services
namespace Jackett.Test.Server.Services
{
[TestFixture]
internal class ProtectionServiceTests : TestBase
{

[Test]
public void Should_be_able_to_encrypt_and_decrypt()
{
var ss = TestUtil.Container.Resolve<ServerConfig>();
ss.InstanceId = "12345678";
var ps = TestUtil.Container.Resolve<IProtectionService>();
var input = "test123";
const string input = "test123";
var protectedInput = ps.Protect(input);
var output = ps.UnProtect(protectedInput);

Expand Down

0 comments on commit 2654ba8

Please sign in to comment.