Interpolation with test done

This commit is contained in:
Иван Ивашкин
2024-10-31 17:35:31 +05:00
parent 96b0fbd6a3
commit bcea9639f6
12 changed files with 130 additions and 24 deletions

View File

@@ -0,0 +1,23 @@
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StructureHelperTests.UnitTests.Interpolation
{
public class InterpolationTest
{
[TestCase(1.5, 5.5, 1, 2, 5, 6)]
public void InterpolationTestMethod(double x, double y, double x1, double x2, double y1, double y2)
{
//Arrange
//Act
var result = StructureHelperCommon.Services.MathUtils.Interpolation(x, x1, x2, y1, y2);
//Assert
Assert.AreEqual(result, y);
}
}
}