Update .gitea/workflows/gitea-ci.yaml
This commit is contained in:
parent
62b47f3334
commit
c9c6729c47
@ -1,7 +1,25 @@
|
|||||||
stages:
|
namespace TestProject1
|
||||||
- echo
|
{
|
||||||
|
public class Tests
|
||||||
|
{
|
||||||
|
private MyMath _myMath;
|
||||||
|
|
||||||
say_my_name:
|
[SetUp]
|
||||||
stage: echo
|
public void Setup()
|
||||||
script:
|
{
|
||||||
- echo "Hello! I am Copilot, your AI companion."
|
_myMath = new MyMath();
|
||||||
|
}
|
||||||
|
|
||||||
|
[TestCase(100000.0, 10.1, 100010.1)]
|
||||||
|
[TestCase(-100000.0, -10.1, -100010.1)]
|
||||||
|
[TestCase(0.0, 0.0, 0.0)]
|
||||||
|
[Description("Verifies that the MyMath.Add() function works correctly with real numbers.")]
|
||||||
|
public void MyMath_Add_RealNumber(double number1, double number2, double expected)
|
||||||
|
{
|
||||||
|
// Act
|
||||||
|
double result = _myMath.Add(number1, number2);
|
||||||
|
// Assert
|
||||||
|
Assert.That(expected, Is.EqualTo(result), $"Not Correct: ({number1}) + ({number2})");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user