1
- // Copyright (c) Toni Solarin-Sodara
1
+ // Copyright (c) Toni Solarin-Sodara
2
2
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
4
4
using System ;
@@ -34,9 +34,7 @@ public void Dispose()
34
34
_disposeAction ? . Invoke ( ) ;
35
35
}
36
36
37
- [ ConditionalFact ]
38
- [ SkipOnOS ( OS . Linux ) ]
39
- [ SkipOnOS ( OS . MacOS ) ]
37
+ [ Fact ]
40
38
public void TestCoreLibInstrumentation ( )
41
39
{
42
40
DirectoryInfo directory = Directory . CreateDirectory ( Path . Combine ( Directory . GetCurrentDirectory ( ) , nameof ( TestCoreLibInstrumentation ) ) ) ;
@@ -55,7 +53,7 @@ public void TestCoreLibInstrumentation()
55
53
partialMockFileSystem . CallBase = true ;
56
54
partialMockFileSystem . Setup ( fs => fs . OpenRead ( It . IsAny < string > ( ) ) ) . Returns ( ( string path ) =>
57
55
{
58
- if ( Path . GetFileName ( path ) == files [ 1 ] )
56
+ if ( Path . GetFileName ( path . Replace ( @"\" , @"/" ) ) == files [ 1 ] )
59
57
{
60
58
return File . OpenRead ( Path . Combine ( Path . Combine ( Directory . GetCurrentDirectory ( ) , "TestAssets" ) , files [ 1 ] ) ) ;
61
59
}
@@ -66,7 +64,7 @@ public void TestCoreLibInstrumentation()
66
64
} ) ;
67
65
partialMockFileSystem . Setup ( fs => fs . Exists ( It . IsAny < string > ( ) ) ) . Returns ( ( string path ) =>
68
66
{
69
- if ( Path . GetFileName ( path ) == files [ 1 ] )
67
+ if ( Path . GetFileName ( path . Replace ( @"\" , @"/" ) ) == files [ 1 ] )
70
68
{
71
69
return File . Exists ( Path . Combine ( Path . Combine ( Directory . GetCurrentDirectory ( ) , "TestAssets" ) , files [ 1 ] ) ) ;
72
70
}
@@ -446,9 +444,7 @@ public void SkipEmbeddedPpdbWithoutLocalSource()
446
444
loggerMock . VerifyNoOtherCalls ( ) ;
447
445
}
448
446
449
- [ ConditionalFact ]
450
- [ SkipOnOS ( OS . MacOS ) ]
451
- [ SkipOnOS ( OS . Linux ) ]
447
+ [ Fact ]
452
448
public void SkipPpdbWithoutLocalSource ( )
453
449
{
454
450
string dllFileName = "75d9f96508d74def860a568f426ea4a4.dll" ;
@@ -458,7 +454,7 @@ public void SkipPpdbWithoutLocalSource()
458
454
partialMockFileSystem . CallBase = true ;
459
455
partialMockFileSystem . Setup ( fs => fs . OpenRead ( It . IsAny < string > ( ) ) ) . Returns ( ( string path ) =>
460
456
{
461
- if ( Path . GetFileName ( path ) == pdbFileName )
457
+ if ( Path . GetFileName ( path . Replace ( @"\" , @"/" ) ) == pdbFileName )
462
458
{
463
459
return File . OpenRead ( Path . Combine ( Path . Combine ( Directory . GetCurrentDirectory ( ) , "TestAssets" ) , pdbFileName ) ) ;
464
460
}
@@ -469,7 +465,7 @@ public void SkipPpdbWithoutLocalSource()
469
465
} ) ;
470
466
partialMockFileSystem . Setup ( fs => fs . Exists ( It . IsAny < string > ( ) ) ) . Returns ( ( string path ) =>
471
467
{
472
- if ( Path . GetFileName ( path ) == pdbFileName )
468
+ if ( Path . GetFileName ( path . Replace ( @"\" , @"/" ) ) == pdbFileName )
473
469
{
474
470
return File . Exists ( Path . Combine ( Path . Combine ( Directory . GetCurrentDirectory ( ) , "TestAssets" ) , pdbFileName ) ) ;
475
471
}
0 commit comments