Добавил тесты библиотеки

This commit is contained in:
Evgeny Redikultsev
2022-06-19 20:57:08 +05:00
parent fc4f1f1db3
commit 0695dfb917
10 changed files with 371 additions and 35 deletions

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace LoaderCalculator.Tests.Infrastructures.Logics
{
internal static class ExpectedProcessor
{
internal static double GetAccuracyForExpectedValue(double expectedValue, double accuracy = 0.001d)
{
if (expectedValue == 0d) { return 1.0e-15d; }
else return Math.Abs(expectedValue) * accuracy;
}
}
}