1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 00:05:42 +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 first = Polygon.Empty;
var second = Polygon.Empty; var second = Polygon.Empty;
Assert.Multiple(() =>
{
Assert.That(second, Is.EqualTo(first)); Assert.That(second, Is.EqualTo(first));
Assert.That(first, Is.EqualTo(second)); 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);
} }
[Test] [Test]
@ -102,14 +99,11 @@ public class PolygonTests
Polygon first = CreateHexagon(); Polygon first = CreateHexagon();
Polygon second = CreateHexagon(); Polygon second = CreateHexagon();
Assert.Multiple(() =>
{
Assert.That(second, Is.EqualTo(first)); Assert.That(second, Is.EqualTo(first));
Assert.That(first, Is.EqualTo(second)); 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);
} }
[Test] [Test]
@ -118,14 +112,11 @@ public class PolygonTests
Polygon first = CreateHexagon(); Polygon first = CreateHexagon();
Polygon second = Polygon.Empty; Polygon second = Polygon.Empty;
Assert.AreNotEqual(first, second); Assert.Multiple(() =>
Assert.AreNotEqual(second, first); {
Assert.That(first.Equals(second), Is.False); Assert.That(second, Is.Not.EqualTo(first));
Assert.That(second.Equals(first), Is.False); Assert.That(first, Is.Not.EqualTo(second));
Assert.That(first == second, Is.False); });
Assert.That(second == first, Is.False);
Assert.That(first != second);
Assert.That(second != first);
} }
[Test] [Test]