Rework Tests for Music, Start TV Code Cleanup

This commit is contained in:
Qstick
2017-10-17 22:55:02 -04:00
parent 1688c0a8df
commit 42e25055a9
37 changed files with 227 additions and 980 deletions
@@ -4,7 +4,7 @@ using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Music;
namespace NzbDrone.Core.Test.Datastore
{
@@ -14,8 +14,8 @@ namespace NzbDrone.Core.Test.Datastore
public void SingleOrDefault_should_return_null_on_empty_db()
{
Mocker.Resolve<IDatabase>()
.GetDataMapper().Query<Series>()
.SingleOrDefault(c => c.CleanTitle == "SomeTitle")
.GetDataMapper().Query<Artist>()
.SingleOrDefault(c => c.CleanName == "SomeTitle")
.Should()
.BeNull();
}
@@ -33,4 +33,4 @@ namespace NzbDrone.Core.Test.Datastore
Mocker.Resolve<IDatabase>().Version.Should().BeGreaterThan(new Version("3.0.0"));
}
}
}
}