1234567891011121314151617 |
- using System.Diagnostics;
- using System.Runtime.CompilerServices;
- namespace Jint.Tests;
- public class RunnableInDebugOnlyAttribute : FactAttribute
- {
- public RunnableInDebugOnlyAttribute(
- [CallerFilePath] string sourceFilePath = null,
- [CallerLineNumber] int sourceLineNumber = -1) : base(sourceFilePath, sourceLineNumber)
- {
- if (!Debugger.IsAttached)
- {
- Skip = "Only running in interactive mode.";
- }
- }
- }
|