1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-25 20:48:47 +00:00

test: remove redundant quality checks (#76)

This commit is contained in:
Oliver Booth 2023-04-05 22:49:28 +01:00
parent dbeb13efcd
commit 744f5e906b
No known key found for this signature in database
GPG Key ID: 20BEB9DC87961025

View File

@ -86,14 +86,11 @@ public class PolygonTests
var first = Polygon.Empty;
var second = Polygon.Empty;
Assert.That(second, Is.EqualTo(first));
Assert.That(first, Is.EqualTo(second));
Assert.That(first.Equals(second));
Assert.That(second.Equals(first));
Assert.That(first == second);
Assert.That(second == first);
Assert.That(first != second, Is.False);
Assert.That(second != first, Is.False);
Assert.Multiple(() =>
{
Assert.That(second, Is.EqualTo(first));
Assert.That(first, Is.EqualTo(second));
});
}
[Test]
@ -102,14 +99,11 @@ public class PolygonTests
Polygon first = CreateHexagon();
Polygon second = CreateHexagon();
Assert.That(second, Is.EqualTo(first));
Assert.That(first, Is.EqualTo(second));
Assert.That(first.Equals(second));
Assert.That(second.Equals(first));
Assert.That(first == second);
Assert.That(second == first);
Assert.That(first != second, Is.False);
Assert.That(second != first, Is.False);
Assert.Multiple(() =>
{
Assert.That(second, Is.EqualTo(first));
Assert.That(first, Is.EqualTo(second));
});
}
[Test]
@ -118,14 +112,11 @@ public class PolygonTests
Polygon first = CreateHexagon();
Polygon second = Polygon.Empty;
Assert.AreNotEqual(first, second);
Assert.AreNotEqual(second, first);
Assert.That(first.Equals(second), Is.False);
Assert.That(second.Equals(first), Is.False);
Assert.That(first == second, Is.False);
Assert.That(second == first, Is.False);
Assert.That(first != second);
Assert.That(second != first);
Assert.Multiple(() =>
{
Assert.That(second, Is.Not.EqualTo(first));
Assert.That(first, Is.Not.EqualTo(second));
});
}
[Test]