From 61a4fe90b89cc127444405597a2590f8537474e5 Mon Sep 17 00:00:00 2001 From: Serghei Cebotari Date: Mon, 13 Nov 2023 22:40:23 +0300 Subject: Initial commit --- MindBox.Tests/FlatShapeAreaTests.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 MindBox.Tests/FlatShapeAreaTests.cs (limited to 'MindBox.Tests/FlatShapeAreaTests.cs') diff --git a/MindBox.Tests/FlatShapeAreaTests.cs b/MindBox.Tests/FlatShapeAreaTests.cs new file mode 100644 index 0000000..9c4b5ca --- /dev/null +++ b/MindBox.Tests/FlatShapeAreaTests.cs @@ -0,0 +1,11 @@ +namespace MindBox.Tests; + +public class FlatShapeAreaTests +{ + [TestCaseSource(typeof(CircleAreaCases))] + [TestCaseSource(typeof(TriangleAreaCases))] + public void AreaTest(FlatShape shape, double area) + { + Assert.That(shape.GetArea(), Is.EqualTo(area).Within(1e-6)); + } +} -- cgit v1.2.3