Update .gitea/workflows/gitea-ci.yaml
This commit is contained in:
parent
62b47f3334
commit
c9c6729c47
@ -1,7 +1,25 @@
|
||||
stages:
|
||||
- echo
|
||||
namespace TestProject1
|
||||
{
|
||||
public class Tests
|
||||
{
|
||||
private MyMath _myMath;
|
||||
|
||||
say_my_name:
|
||||
stage: echo
|
||||
script:
|
||||
- echo "Hello! I am Copilot, your AI companion."
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
_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