added xUnit Tests
Some checks failed
csharp-secdevops-pipeline-pod/pipeline/head There was a failure building this commit

This commit is contained in:
2026-05-05 08:45:24 +02:00
parent b1fbc831a7
commit 366a0f548c
22 changed files with 6160 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
using Xunit;
using MyHelloWorld; // Dein Namespace der Haupt-App
namespace MyHelloWorld.Tests
{
public class HelloTests
{
[Fact]
public void GetGreeting_ShouldReturnCorrectText()
{
// Arrange
var generator = new HelloGenerator();
// Act
var result = generator.GetGreeting();
// Assert
Assert.Equal("Hello World", result);
}
}
}