Has anyone created unit tests for a service in SnapDevelop using xUnit? I have a simple test shown below which builds fine. When I run the test I get the attached error. Would love to see a working example from someone. Given that the service method is returning a datastore I'm not sure how to use Assert in this instance.
Thanks, Tom
private readonly IOrderService _orderService;
public OrderServiceTests(IOrderService OrderService)
{
_orderService = OrderService;
}
[Fact]
public void Test_Orders()
{
var int id = 1;
// Invoke the service method
var result = _orderService.GetOrder(id);
// Validate the result
Assert.Empty(result);
}