xunit
Installation
SKILL.md
xUnit Skill
xUnit is the testing framework for VanDaemon. Tests follow the Arrange-Act-Assert pattern with FluentAssertions for readable assertions and Moq for mocking dependencies. All test projects use the naming convention {Project}.Tests.
Quick Start
Service Test Pattern
public class TankServiceTests
{
private readonly Mock<ILogger<TankService>> _loggerMock = new();
private readonly Mock<ISensorPlugin> _sensorMock = new();
[Fact]
public async Task GetAllTanksAsync_ReturnsOnlyActiveTanks()
{
// Arrange
var service = new TankService(_loggerMock.Object, _sensorMock.Object);
Related skills