Skip to content
Discussion options

You must be logged in to vote

I did some more research since yesterday and realized I did not understand how IXunitSerializable was to be used. Working from some other info on stack overflow I think I have what I want working. Any suggestions on how to simplify it would be appreciated.

    public class TheoryNameTests
    {
        [SkippableTheory]
        [Trait("xUnit", "ForTestRunner")]
        [MemberData(nameof(ComplexTheoryData))]
        public void SkippableComplexTheoryTest_TestRunner(int id, TheoryWrapper<Test> test)
        {
            Assert.Equal("pass", test.Object.TestData);
            //throw new SkipTestException(test.Name);
        }
        public static IEnumerable<object[]> ComplexTheoryData

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@bradwilson
Comment options

@gpiccin
Comment options

@Camble
Comment options

@atruskie
Comment options

Answer selected by JDCain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants