PageRenderTime 39ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/src/NUnit/interfaces/Extensibility/ITestCaseData.cs

#
C# | 67 lines | 15 code | 9 blank | 43 comment | 0 complexity | b815cad6895f64ad9f18c2b644745dbc MD5 | raw file
Possible License(s): GPL-2.0
  1. // ****************************************************************
  2. // Copyright 2008, Charlie Poole
  3. // This is free software licensed under the NUnit license. You may
  4. // obtain a copy of the license at http://nunit.org
  5. // ****************************************************************
  6. using System;
  7. namespace NUnit.Framework
  8. {
  9. /// <summary>
  10. /// The ITestCaseData interface is implemented by a class
  11. /// that is able to return complete testcases for use by
  12. /// a parameterized test method.
  13. ///
  14. /// NOTE: This interface is used in both the framework
  15. /// and the core, even though that results in two different
  16. /// types. However, sharing the source code guarantees that
  17. /// the various implementations will be compatible and that
  18. /// the core is able to reflect successfully over the
  19. /// framework implementations of ITestCaseData.
  20. /// </summary>
  21. public interface ITestCaseData
  22. {
  23. /// <summary>
  24. /// Gets the argument list to be provided to the test
  25. /// </summary>
  26. object[] Arguments { get; }
  27. /// <summary>
  28. /// Gets the expected result
  29. /// </summary>
  30. object Result { get; }
  31. /// <summary>
  32. /// Gets the expected exception Type
  33. /// </summary>
  34. Type ExpectedException { get; }
  35. /// <summary>
  36. /// Gets the FullName of the expected exception
  37. /// </summary>
  38. string ExpectedExceptionName { get; }
  39. /// <summary>
  40. /// Gets the name to be used for the test
  41. /// </summary>
  42. string TestName { get; }
  43. /// <summary>
  44. /// Gets the description of the test
  45. /// </summary>
  46. string Description { get; }
  47. /// <summary>
  48. /// Gets a value indicating whether this <see cref="ITestCaseData"/> is ignored.
  49. /// </summary>
  50. /// <value><c>true</c> if ignored; otherwise, <c>false</c>.</value>
  51. bool Ignored { get; }
  52. /// <summary>
  53. /// Gets the ignore reason.
  54. /// </summary>
  55. /// <value>The ignore reason.</value>
  56. string IgnoreReason { get; }
  57. }
  58. }