Files
FA/BroseCumulativeReport.Tests/IAppTests.cs
Piotr Kus a1c9006e77
All checks were successful
ci/woodpecker/push/push_to_repo Pipeline was successful
ci/woodpecker/pr/merge_to_master Pipeline was successful
* Added BroseCUmulativeReport.Tests project to cover UnitTests for BroseCumulativeReport project
2026-01-25 12:09:46 +01:00

25 lines
560 B
C#

using System.Threading.Tasks;
using BroseCumulativeReport;
using Moq;
using Xunit;
namespace BroseCumulativeReport.Tests
{
public class IAppTests
{
[Fact]
public async Task RunAsync_ShouldBeAwaitable()
{
// Arrange
var mockApp = new Mock<IApp>();
mockApp.Setup(app => app.RunAsync()).Returns(Task.CompletedTask).Verifiable();
// Act
await mockApp.Object.RunAsync();
// Assert
mockApp.Verify(v => v.RunAsync(), Times.Once);
}
}
}