1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-25 17:17:02 +00:00

Updated fluent assertion, unignored qulity equality tests.

This commit is contained in:
kay.one 2011-07-05 23:16:37 -07:00
parent 676f6345a9
commit 46f90255bf
3 changed files with 1967 additions and 744 deletions

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -11,43 +11,39 @@ namespace NzbDrone.Core.Test
public class QualityTest : TestBase public class QualityTest : TestBase
{ {
[Test] [Test]
[Ignore("No supported asserts are available")]
public void Icomparer_greater_test() public void Icomparer_greater_test()
{ {
var first = new Quality(QualityTypes.DVD, true); var first = new Quality(QualityTypes.DVD, true);
var second = new Quality(QualityTypes.Bluray1080p, true); var second = new Quality(QualityTypes.Bluray1080p, true);
//Assert.GreaterThan(second, first); second.Should().BeGreaterThan(first);
} }
[Test] [Test]
[Ignore("No supported asserts are available")]
public void Icomparer_greater_proper() public void Icomparer_greater_proper()
{ {
var first = new Quality(QualityTypes.Bluray1080p, false); var first = new Quality(QualityTypes.Bluray1080p, false);
var second = new Quality(QualityTypes.Bluray1080p, true); var second = new Quality(QualityTypes.Bluray1080p, true);
//Assert.GreaterThan(second, first); second.Should().BeGreaterThan(first);
} }
[Test] [Test]
[Ignore("No supported asserts are available")]
public void Icomparer_lesser() public void Icomparer_lesser()
{ {
var first = new Quality(QualityTypes.DVD, true); var first = new Quality(QualityTypes.DVD, true);
var second = new Quality(QualityTypes.Bluray1080p, true); var second = new Quality(QualityTypes.Bluray1080p, true);
//Assert.LessThan(first, second); first.Should().BeLessThan(second);
} }
[Test] [Test]
[Ignore("No supported asserts are available")]
public void Icomparer_lesser_proper() public void Icomparer_lesser_proper()
{ {
var first = new Quality(QualityTypes.DVD, false); var first = new Quality(QualityTypes.DVD, false);
var second = new Quality(QualityTypes.DVD, true); var second = new Quality(QualityTypes.DVD, true);
//Assert.LessThan(first, second); first.Should().BeLessThan(second);
} }
[Test] [Test]
@ -86,7 +82,7 @@ public void not_equal_operand()
var first = new Quality(QualityTypes.Bluray1080p, true); var first = new Quality(QualityTypes.Bluray1080p, true);
var second = new Quality(QualityTypes.Bluray1080p, true); var second = new Quality(QualityTypes.Bluray1080p, true);
Assert.IsFalse(first != second); (first != second).Should().BeFalse();
} }
[Test] [Test]