mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Naming config fixed, with integration tests
This commit is contained in:
parent
1e3a308917
commit
dd37713a10
7 changed files with 52 additions and 11 deletions
35
NzbDrone.Integration.Test/NamingConfigTests.cs
Normal file
35
NzbDrone.Integration.Test/NamingConfigTests.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace NzbDrone.Integration.Test
|
||||
{
|
||||
[TestFixture]
|
||||
public class NamingConfigTests : IntegrationTest
|
||||
{
|
||||
|
||||
[Test]
|
||||
public void should_be_able_to_get()
|
||||
{
|
||||
NamingConfig.GetSingle().Should().NotBeNull();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_be_able_to_get_by_id()
|
||||
{
|
||||
var config = NamingConfig.GetSingle();
|
||||
NamingConfig.Get(config.Id).Should().NotBeNull();
|
||||
NamingConfig.Get(config.Id).Id.Should().Be(config.Id);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_be_able_to_update()
|
||||
{
|
||||
var config = NamingConfig.GetSingle();
|
||||
config.RenameEpisodes = false;
|
||||
|
||||
NamingConfig.Put(config).RenameEpisodes.Should().BeFalse();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue