29 lines
778 B
C#
29 lines
778 B
C#
using Moq;
|
|
using NUnit.Framework;
|
|
using StructureHelperCommon.Infrastructures.Exceptions;
|
|
using StructureHelperCommon.Models.Shapes;
|
|
using StructureHelperLogics.NdmCalculations.Analyses.ByForces;
|
|
|
|
namespace StructureHelperTests.UnitTests.Calcuators
|
|
{
|
|
[TestFixture]
|
|
public class LimitCurveCalculatorTest
|
|
{
|
|
[TestCase(10d, 20d)]
|
|
public void Run_ShouldPass(double xmax, double ymax)
|
|
{
|
|
//Arrange
|
|
var calculator = new LimitCurveCalculator(new StabLimitCurveLogic())
|
|
{
|
|
XMax = xmax,
|
|
Ymax = ymax
|
|
};
|
|
//Act
|
|
calculator.Run();
|
|
var result = calculator.Result;
|
|
//Assert
|
|
Assert.IsNotNull(result);
|
|
}
|
|
}
|
|
}
|