* WIP #653 - Delete two tests These two couldn't easily be fixed, in both cases they were integration tests which involved passing through many classes. It wasn't immediately clear what needed to be done to fix them. As noted in the issue description, removing them was an acceptable fix. * WIP #653 - Fix a failing test I split this test into two. Per the discussion at: https://github.com/xunit/xunit/issues/350 XUnit seems quite opinonated about not having assertion messages. Thus, without changing assertion library (which deserves discussion before I just do it), the logical next best thing is to split into two single-assert tests, so it's clear which assertion failed on a test failure. Also, I moved the AutoMoqData attribute to the shared test lib, so that it can be used anywhere. That allowed me to eliminate the constructor for this test class, except for initialising the base class. * Provisionally resolve #653 - reinstate tests in CI This should complete the issue although we need to see a passing CI build with this code change before we can say it's done. * Provisionally resolves #653 - Add test script
13 lines
285 B
C#
13 lines
285 B
C#
using AutoFixture;
|
|
using AutoFixture.AutoMoq;
|
|
using AutoFixture.Xunit2;
|
|
|
|
namespace Elsa
|
|
{
|
|
public class AutoMoqDataAttribute : AutoDataAttribute
|
|
{
|
|
public AutoMoqDataAttribute() : base(() => new Fixture().Customize(new AutoMoqCustomization()))
|
|
{
|
|
}
|
|
}
|
|
} |