PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/src/NUnit/interfaces/PropertyNames.cs

#
C# | 55 lines | 25 code | 2 blank | 28 comment | 0 complexity | 92f65024f4fd2d20be663a3c8043a4c6 MD5 | raw file
Possible License(s): GPL-2.0
  1. // ****************************************************************
  2. // Copyright 2009, 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.Core
  8. {
  9. /// <summary>
  10. /// The PropertyNames struct lists common property names, which are
  11. /// accessed by reflection in the NUnit core. This provides a modicum
  12. /// of type safety as opposed to using the strings directly.
  13. /// </summary>
  14. public struct PropertyNames
  15. {
  16. /// <summary>Exception Type expected from a test</summary>
  17. public static readonly string ExpectedException = "ExpectedException";
  18. /// <summary>Exception Type expected from a test (pre-2.5)</summary>
  19. public static readonly string LegacyExceptionType = "ExceptionType";
  20. /// <summary>FullName of the Exception Type expected from a test</summary>
  21. public static readonly string ExpectedExceptionName = "ExpectedExceptionName";
  22. /// <summary>FullName of the Exception Type expected from a test (pre-2.5)</summary>
  23. public static readonly string LegacyExceptionName = "ExceptionName";
  24. /// <summary>ExpectedException Message</summary>
  25. public static readonly string ExpectedMessage = "ExpectedMessage";
  26. /// <summary>ExpectedException MatchType</summary>
  27. public static readonly string MatchType = "MatchType";
  28. /// <summary>Expected return result from test</summary>
  29. public static readonly string Result = "Result";
  30. /// <summary>Description of the test</summary>
  31. public static readonly string Description = "Description";
  32. /// <summary>Alternate test name</summary>
  33. public static readonly string TestName = "TestName";
  34. /// <summary>Arguments for the test</summary>
  35. public static readonly string Arguments = "Arguments";
  36. /// <summary>Indicates test case is ignored</summary>
  37. public static readonly string Ignored = "Ignored";
  38. /// <summary>The reason a test case is ignored</summary>
  39. public static readonly string IgnoreReason = "IgnoreReason";
  40. /// <summary>Properties of the test</summary>
  41. public static readonly string Properties = "Properties";
  42. /// <summary>Categories of the test</summary>
  43. public static readonly string Categories = "Categories";
  44. /// <summary>Name of a category</summary>
  45. public static readonly string CategoryName = "Name";
  46. /// <summary>Reason for not running a test</summary>
  47. public static readonly string Reason = "Reason";
  48. /// <summary>Flag indicating excluded test should be marked as Ignored</summary>
  49. public static readonly string IgnoreExcluded = "IgnoreExcluded";
  50. /// <summary>Name of an addin that must be present to run a test</summary>
  51. public static readonly string RequiredAddin = "RequiredAddin";
  52. }
  53. }