public static DSigSerializerTheoryData SignatureTest(SignatureTestSet testSet, ExpectedException expectedException = null, bool first = false) { return(new DSigSerializerTheoryData { ExpectedException = expectedException ?? ExpectedException.NoExceptionExpected, First = first, Signature = testSet.Signature, TestId = testSet.TestId ?? nameof(testSet), Xml = testSet.Xml, }); }
private static SignatureTheoryData SignatureTest(SignatureTestSet testSet, SecurityKey key, XmlTokenStream tokenStream, ExpectedException expectedException = null, bool first = false) { return(new SignatureTheoryData { ExpectedException = expectedException ?? ExpectedException.NoExceptionExpected, SecurityKey = key, Signature = testSet.Signature, TestId = testSet.TestId ?? nameof(testSet), TokenStream = tokenStream, Xml = testSet.Xml }); }