1
1
using NUnit . Framework ;
2
+ using NUnit . Framework . Interfaces ;
3
+ using NUnit . Framework . Internal ;
2
4
using Utilities ;
3
5
4
6
[ assembly: Parallelizable ( ParallelScope . Children ) ]
@@ -7,12 +9,18 @@ namespace ExampleTester;
7
9
8
10
public static class ExampleTests
9
11
{
10
- private static TesterConfiguration TesterConfiguration { get ; } = new ( FindTmpDirectory ( ) ) ;
11
-
12
+ // private static TesterConfiguration TesterConfiguration { get; } = new(FindTmpDirectory());
13
+ /*
12
14
public static IEnumerable<object[]> LoadExamples() =>
13
15
from example in GeneratedExample.LoadAllExamples(TesterConfiguration.ExtractedOutputDirectory)
14
16
select new object[] { example };
15
-
17
+ */
18
+ [ Test ]
19
+ public static void Temp ( )
20
+ {
21
+ TestContext . WriteLine ( "Found: " + FindTmpDirectory ( ) ) ;
22
+ }
23
+ /*
16
24
[TestCaseSource(nameof(LoadExamples))]
17
25
public static async Task ExamplePasses(GeneratedExample example)
18
26
{
@@ -21,11 +29,13 @@ public static async Task ExamplePasses(GeneratedExample example)
21
29
if (!await example.Test(TesterConfiguration, logger))
22
30
Assert.Fail("There were one or more failures. See the logged output for details.");
23
31
}
24
-
32
+ */
25
33
private static string FindTmpDirectory ( )
26
34
{
27
35
for ( string ? current = AppDomain . CurrentDomain . BaseDirectory ; current != null ; current = Path . GetDirectoryName ( current ) )
28
36
{
37
+ TestContext . WriteLine ( $ "Trying directory '{ current } ' containing { string . Join ( ", " , Directory . GetFileSystemEntries ( current ) . Select ( Path . GetFileName ) ) } ") ;
38
+
29
39
string testPath = Path . Join ( current , "tmp" ) ;
30
40
if ( Directory . Exists ( testPath ) )
31
41
return testPath ;
0 commit comments