mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Fixed gitignore file
This commit is contained in:
parent
c2f9679141
commit
9bc64e7ea4
159
.gitignore
vendored
159
.gitignore
vendored
@ -1,54 +1,123 @@
|
|||||||
|
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
|
||||||
#ignore thumbnails created by windows
|
# mstest test results
|
||||||
Thumbs.db
|
TestResults
|
||||||
#Ignore files build by Visual Studio
|
|
||||||
*.obj
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
|
## files generated by popular Visual Studio add-ons.
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.suo
|
||||||
*.user
|
*.user
|
||||||
*.aps
|
*.sln.docstates
|
||||||
*.pch
|
|
||||||
*.vspscc
|
# Build results
|
||||||
|
[Dd]ebug/
|
||||||
|
[Rr]elease/
|
||||||
|
x64/
|
||||||
*_i.c
|
*_i.c
|
||||||
*_p.c
|
*_p.c
|
||||||
*.ncb
|
|
||||||
*.suo
|
|
||||||
*.tlb
|
|
||||||
*.tlh
|
|
||||||
*.bak
|
|
||||||
*.cache
|
|
||||||
*.ilk
|
*.ilk
|
||||||
*.log
|
*.meta
|
||||||
[Bb]in
|
*.obj
|
||||||
[Dd]ebug*/
|
*.pch
|
||||||
[Rrelease]*/
|
*.pdb
|
||||||
*.lib
|
*.pgc
|
||||||
|
*.pgd
|
||||||
|
*.rsp
|
||||||
*.sbr
|
*.sbr
|
||||||
*.nzb
|
*.tlb
|
||||||
obj/
|
*.tli
|
||||||
[Rr]elease*/
|
*.tlh
|
||||||
_ReSharper*/
|
*.tmp
|
||||||
[Tt]est[Rr]esult[s]
|
*.log
|
||||||
[Nn]zbs
|
*.vspscc
|
||||||
[Bb]uild/
|
*.vssscc
|
||||||
[Ll]ogs/
|
.builds
|
||||||
[Aa]pp_Data/
|
|
||||||
/[Pp]ackage/
|
# Visual C++ cache files
|
||||||
[Pp]ackages
|
ipch/
|
||||||
#NZBDrone specific
|
*.aps
|
||||||
*.db
|
*.ncb
|
||||||
*Web.Publish.xml
|
*.opensdf
|
||||||
NzbDrone.Web/NzbDrone.Web.Publish.xml
|
|
||||||
*.sdf
|
*.sdf
|
||||||
[Bb]anners
|
|
||||||
*.orig
|
# Visual Studio profiler
|
||||||
_rawPackage/
|
*.psess
|
||||||
NzbDrone.zip
|
*.vsp
|
||||||
NzbDrone.sln.DotSettings.user*
|
*.vspx
|
||||||
config.xml
|
|
||||||
UpdateLogs/
|
# Guidance Automation Toolkit
|
||||||
NzbDrone.Web/MediaCover
|
*.gpState
|
||||||
NzbDrone.fpr
|
|
||||||
nzbdrone.log*txt
|
# ReSharper is a .NET coding add-in
|
||||||
_rawPackage_service/
|
_ReSharper*
|
||||||
|
|
||||||
|
# Mindbench SASS cache
|
||||||
|
.sass-cache/
|
||||||
|
|
||||||
|
# NCrunch
|
||||||
|
*.ncrunch*
|
||||||
|
.*crunch*.local.xml
|
||||||
|
|
||||||
|
# Installshield output folder
|
||||||
|
[Ee]xpress
|
||||||
|
|
||||||
|
# DocProject is a documentation generator add-in
|
||||||
|
DocProject/buildhelp/
|
||||||
|
DocProject/Help/*.HxT
|
||||||
|
DocProject/Help/*.HxC
|
||||||
|
DocProject/Help/*.hhc
|
||||||
|
DocProject/Help/*.hhk
|
||||||
|
DocProject/Help/*.hhp
|
||||||
|
DocProject/Help/Html2
|
||||||
|
DocProject/Help/html
|
||||||
|
|
||||||
|
# Click-Once directory
|
||||||
|
publish
|
||||||
|
|
||||||
|
# Publish Web Output
|
||||||
|
*.Publish.xml
|
||||||
|
|
||||||
|
# NuGet Packages Directory
|
||||||
|
packages
|
||||||
|
|
||||||
|
# Windows Azure Build Output
|
||||||
|
csx
|
||||||
|
*.build.csdef
|
||||||
|
|
||||||
|
# Windows Store app package directory
|
||||||
|
AppPackages/
|
||||||
|
|
||||||
|
# Others
|
||||||
|
sql
|
||||||
|
TestResults
|
||||||
|
[Tt]est[Rr]esult*
|
||||||
|
*.Cache
|
||||||
|
ClientBin
|
||||||
|
[Ss]tyle[Cc]op.*
|
||||||
|
~$*
|
||||||
|
*.dbmdl
|
||||||
|
Generated_Code #added for RIA/Silverlight projects
|
||||||
|
|
||||||
|
# Backup & report files from converting an old project file to a newer
|
||||||
|
# Visual Studio version. Backup files are not needed, because we have git ;-)
|
||||||
|
_UpgradeReport_Files/
|
||||||
|
Backup*/
|
||||||
|
UpgradeLog*.XML
|
||||||
|
|
||||||
|
# SQL Server files
|
||||||
|
App_Data/*.mdf
|
||||||
|
App_Data/*.ldf
|
||||||
|
|
||||||
|
# Tools
|
||||||
_NCrunch_*
|
_NCrunch_*
|
||||||
_TeamCity*
|
_TeamCity*
|
||||||
NCrunch_*
|
|
||||||
|
# NzbDrone
|
||||||
|
config.xml
|
||||||
|
nzbdrone.log*txt
|
||||||
|
NzbDrone.Web/MediaCover
|
||||||
|
UpdateLogs/
|
@ -0,0 +1,59 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using FizzWare.NBuilder;
|
||||||
|
using FluentAssertions;
|
||||||
|
using NUnit.Framework;
|
||||||
|
using NzbDrone.Core.Providers;
|
||||||
|
using NzbDrone.Core.Repository;
|
||||||
|
using NzbDrone.Test.Common;
|
||||||
|
|
||||||
|
namespace NzbDrone.Core.Test.ProviderTests.SearchProviderTests
|
||||||
|
{
|
||||||
|
public class GetSeriesTitleFixture : TestBase
|
||||||
|
{
|
||||||
|
private Series _series;
|
||||||
|
private const string SCENE_NAME = "Scandal";
|
||||||
|
|
||||||
|
[SetUp]
|
||||||
|
public void Setup()
|
||||||
|
{
|
||||||
|
_series = Builder<Series>
|
||||||
|
.CreateNew()
|
||||||
|
.With(s => s.Title = "Scandal (2012)")
|
||||||
|
.Build();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void WithSceneName()
|
||||||
|
{
|
||||||
|
Mocker.GetMock<SceneMappingProvider>()
|
||||||
|
.Setup(s => s.GetSceneName(_series.SeriesId))
|
||||||
|
.Returns("Scandal");
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void should_return_scene_name_when_sceneName_is_available()
|
||||||
|
{
|
||||||
|
WithSceneName();
|
||||||
|
|
||||||
|
Mocker.Resolve<SearchProvider>().GetSeriesTitle(_series).Should().Be(SCENE_NAME);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void should_return_seriesTitle_when_sceneName_is_not_available()
|
||||||
|
{
|
||||||
|
Mocker.Resolve<SearchProvider>().GetSeriesTitle(_series).Should().Be(_series.Title);
|
||||||
|
}
|
||||||
|
|
||||||
|
[TestCase("Mike & Molly", "Mike and Molly")]
|
||||||
|
[TestCase("Franklin & Bash", "Franklin and Bash")]
|
||||||
|
[TestCase("Law & Order", "Law and Order")]
|
||||||
|
public void should_replace_ampersand_with_and_when_returning_title(string seriesTitle, string expectedTitle)
|
||||||
|
{
|
||||||
|
_series.Title = seriesTitle;
|
||||||
|
|
||||||
|
Mocker.Resolve<SearchProvider>().GetSeriesTitle(_series).Should().Be(expectedTitle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user