Guest User

Untitled

a guest
Oct 18th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. [Test]
  2. public async Task TestDocumentsDifferentFormats(
  3. [ValueSource(nameof(Formats))] string format,
  4. [ValueSource(nameof(Documents))] IDocument document)
  5. {
  6.  
  7. public class DocumentFactory
  8. {
  9. public static readonly List<IDocument> Documents=
  10. new List<IDocument>
  11. {
  12. // Init documents
  13. };
  14. }
  15.  
  16. The sourceName specified on a ValueSourceAttribute must refer to a non null static field, property or method.
Add Comment
Please, Sign In to add comment