mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
cleaned up some tests.
This commit is contained in:
parent
1ccbb3c9d8
commit
35cb7e55c7
9 changed files with 116 additions and 218 deletions
|
@ -1,44 +0,0 @@
|
|||
using Autofac;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Test.Common;
|
||||
|
||||
namespace NzbDrone.App.Test
|
||||
{
|
||||
[TestFixture]
|
||||
public class CentralDispatchTests : TestBase
|
||||
{
|
||||
[Test]
|
||||
public void Kernel_can_get_kernel()
|
||||
{
|
||||
NzbDroneBootstrapper.Container.Should().NotBeNull();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Kernel_should_return_same_kernel()
|
||||
{
|
||||
var firstKernel = NzbDroneBootstrapper.Container;
|
||||
var secondKernel = NzbDroneBootstrapper.Container;
|
||||
|
||||
firstKernel.Should().BeSameAs(secondKernel);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Kernel_should_be_able_to_resolve_ApplicationServer()
|
||||
{
|
||||
var appServer = NzbDroneBootstrapper.Container.Resolve<ApplicationServer>();
|
||||
|
||||
appServer.Should().NotBeNull();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Kernel_should_resolve_same_ApplicationServer_instance()
|
||||
{
|
||||
var appServer1 = NzbDroneBootstrapper.Container.Resolve<ApplicationServer>();
|
||||
var appServer2 = NzbDroneBootstrapper.Container.Resolve<ApplicationServer>();
|
||||
|
||||
appServer1.Should().BeSameAs(appServer2);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -81,7 +81,6 @@
|
|||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CentralDispatchTests.cs" />
|
||||
<Compile Include="IISProviderFixture.cs" />
|
||||
<Compile Include="RouterTest.cs" />
|
||||
<Compile Include="MonitoringProviderTest.cs" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue