2013-11-03 01:19:33 +00:00
|
|
|
|
using MediaBrowser.Server.Implementations.Library;
|
|
|
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Tests.Server.Implementations.Library {
|
|
|
|
|
[TestClass]
|
|
|
|
|
public class ResolverHelperTests
|
|
|
|
|
{
|
|
|
|
|
[TestMethod]
|
|
|
|
|
public void TestStripBrackets()
|
|
|
|
|
{
|
2013-11-03 01:47:14 +00:00
|
|
|
|
Assert.AreEqual("My Movie", ResolverHelper.StripBrackets("My Movie [boxset] [blah blah]"));
|
|
|
|
|
Assert.AreEqual("file 01", ResolverHelper.StripBrackets("[tag1] file 01 [tvdbid=12345]"));
|
|
|
|
|
Assert.AreEqual("file 01", ResolverHelper.StripBrackets("[tag1] file 01 [tmdbid=12345]"));
|
|
|
|
|
Assert.AreEqual("file 01", ResolverHelper.StripBrackets("[tag1] file [boxset] [tvdbid=12345] 01 [tmdbid=12345]"));
|
2013-11-03 01:19:33 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|