Skip to content

Commit 9c77eb7

Browse files
fgreinachertathamoddie
authored andcommitted
Exclude failing tests from .NET Core/Standard build
1 parent 829b261 commit 9c77eb7

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

TestHelpers.Tests/MockDirectoryTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,9 @@ public void MockDirectory_GetFiles_ShouldFindFilesContainingTwoOrMoreDots()
784784
Assert.That(actualResult, Is.EquivalentTo(new [] { testPath }));
785785
}
786786

787+
#if NET40
787788
[TestCase(@"""")]
789+
#endif
788790
[TestCase("aa\t")]
789791
public void MockDirectory_GetFiles_ShouldThrowAnArgumentException_IfSearchPatternHasIllegalCharacters(string searchPattern)
790792
{

TestHelpers.Tests/MockFileWriteAllBytesTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ public void MockFile_WriteAllBytes_ShouldThrowAnUnauthorizedAccessExceptionIfFil
5858
Assert.Throws<UnauthorizedAccessException>(action, "Access to the path '{0}' is denied.", path);
5959
}
6060

61+
#if NET40
6162
[Test]
63+
#endif
6264
public void MockFile_WriteAllBytes_ShouldThrowAnArgumentExceptionIfContainsIllegalCharacters()
6365
{
6466
// Arrange

0 commit comments

Comments
 (0)