Skip to content

Commit

Permalink
Enable simulated tests for all file system methods
Browse files Browse the repository at this point in the history
  • Loading branch information
vbreuss committed Apr 21, 2024
1 parent baa1736 commit 49ed920
Showing 1 changed file with 1 addition and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Linq;
using System.Text;
using Testably.Abstractions.Tests.SourceGenerator.Model;
// ReSharper disable StringLiteralTypo
Expand Down Expand Up @@ -260,30 +259,7 @@ public override void SkipIfLongRunningTestsShouldBeSkipped()

private bool IncludeSimulatedTests(ClassModel @class)
{
string[] supportedPathTests =
[
"ChangeExtensionTests",
"CombineTests",
"EndsInDirectorySeparatorTests",
"GetDirectoryNameTests",
"GetExtensionTests",
"GetFileNameTests",
"GetFileNameWithoutExtensionTests",
"GetFullPathTests",
"GetPathRootTests",
"GetRandomFileNameTests",
"GetRelativePathTests",
"GetTempFileNameTests",
"GetTempPathTests",
"HasExtensionTests",
"IsPathRootedTests",
"JoinTests",
"Tests",
"TrimEndingDirectorySeparatorTests",
"TryJoinTests"
];
return @class.Namespace
.StartsWith("Testably.Abstractions.Tests.FileSystem.Path", StringComparison.Ordinal)
&& supportedPathTests.Contains(@class.Name);
.StartsWith("Testably.Abstractions.Tests.FileSystem", StringComparison.Ordinal);
}
}

0 comments on commit 49ed920

Please sign in to comment.