View of tuple crack result was changed

This commit is contained in:
Evgeny Redikultsev
2024-05-26 14:05:02 +05:00
parent d13304fe06
commit 0913ca85b7
13 changed files with 92 additions and 23 deletions

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using StructureHelperLogics.NdmCalculations.Cracking;
namespace StructureHelperTests.UnitTests.Ndms.Cracks
{
public class CrackWidthLogicSP63Test
{
[TestCase(1.4d, 0.001d, 0d, 0.3d, 0.00020999999999999998d)]
[TestCase(1.4d, 0.001d, 0.001d, 0.3d, 0d)]
public void Run_ShouldPass(double termFactor, double rebarStrain, double concreteStrain, double length, double expectedWidth)
{
//Arrange
var inputData = new CrackWidthLogicInputDataSP63()
{
TermFactor = termFactor,
BondFactor = 0.5d,
StressStateFactor = 1d,
PsiSFactor = 1d,
RebarStrain = rebarStrain,
ConcreteStrain = concreteStrain,
Length = length
};
var logic = new CrackWidthLogicSP63() { InputData = inputData };
//Act
var width = logic.GetCrackWidth();
//Assert
Assert.AreEqual(expectedWidth, width, 0.000001d);
}
}
}