aboutsummaryrefslogtreecommitdiff
path: root/MindBox.Tests/FlatShapeAreaTests.cs
blob: 9c4b5ca4c0cd392d02594a4f72e485584a990386 (plain)
1
2
3
4
5
6
7
8
9
10
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));
    }
}