Removed redundent classes.

This commit is contained in:
Keivan 2010-09-27 22:35:15 -07:00
parent d18029fe5b
commit c7286863b0
8 changed files with 22 additions and 104 deletions

View file

@ -38,12 +38,8 @@ namespace NzbDrone.Core.Test
var target = new SabProvider(config.Object, new Mock<ILog>().Object, http.Object);
ItemInfo nzb = new ItemInfo();
nzb.Link = new Uri("http://www.nzbclub.com/nzb_download.aspx?mid=1950232");
nzb.Title = "This is an Nzb";
//Act
bool result = target.AddByUrl(nzb);
bool result = target.AddByUrl("http://www.nzbclub.com/nzb_download.aspx?mid=1950232", "This is an Nzb");
//Assert
Assert.AreEqual(true, result);
@ -71,12 +67,8 @@ namespace NzbDrone.Core.Test
var target = new SabProvider(config.Object, new Mock<ILog>().Object, http.Object);
ItemInfo nzb = new ItemInfo();
nzb.Link = new Uri("http://www.nzbclub.com/nzb_download.aspx?mid=1950232");
nzb.Title = "This is an Nzb";
//Act
bool result = target.AddByUrl(nzb);
bool result = target.AddByUrl("http://www.nzbclub.com/nzb_download.aspx?mid=1950232", "This is an Nzb");
//Assert
Assert.AreEqual(false, result);
@ -108,12 +100,8 @@ namespace NzbDrone.Core.Test
var target = new SabProvider(config.Object, new Mock<ILog>().Object, http.Object);
Episode episode = new Episode();
episode.FileName = "Ubuntu Test";
//Act
bool result = target.IsInQueue(episode);
bool result = target.IsInQueue("Ubuntu Test");
//Assert
Assert.AreEqual(true, result);
@ -145,10 +133,8 @@ namespace NzbDrone.Core.Test
var target = new SabProvider(config.Object, new Mock<ILog>().Object, http.Object);
Episode episode = new Episode();
//Act
bool result = target.IsInQueue(episode);
bool result = target.IsInQueue(String.Empty);
//Assert
Assert.AreEqual(false, result);
@ -180,10 +166,8 @@ namespace NzbDrone.Core.Test
var target = new SabProvider(config.Object, new Mock<ILog>().Object, http.Object);
Episode episode = new Episode();
//Act
bool result = target.IsInQueue(episode);
bool result = target.IsInQueue(String.Empty);
//Assert
Assert.AreEqual(false, result);