Netcore: Migrate more tests (#9621)

* AB8828 - Migrated ShadowFileSystemTests.cs
Note that the underlying behavior of Directory.EnumerateFiles is changed when search pattern is "". "" is not handled like "*" in netcore.

* AB8828 - Migrated ScopeEventDispatcherTests.cs

* AB8828 - Migrated DistributedCacheBinderTests.cs

* AB8828 - Migrated SchemaValidationTest.cs

* AB8828 - Migrated LocksTests.cs

* AB8828 - Migrated SqlCeTableByTableTest.cs (and renamed to SqlServerTableByTableTest.cs)

* AB8828 - Created DatabaseBuilderTests

* AB8828 - Fix issues with file systems for linux
This commit is contained in:
Bjarke Berg
2021-01-11 09:04:05 +01:00
committed by GitHub
parent 5672aedcee
commit e66ccc536d
19 changed files with 469 additions and 538 deletions

View File

@@ -2,10 +2,8 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.Extensions.Logging;
using Umbraco.Core.Exceptions;
using Umbraco.Core.Composing;
using System.Threading;
using Microsoft.Extensions.Logging;
using Umbraco.Core.Hosting;
namespace Umbraco.Core.IO
@@ -177,7 +175,7 @@ namespace Umbraco.Core.IO
/// <param name="path">The filesystem-relative path of the directory.</param>
/// <param name="filter">A filter.</param>
/// <returns>The filesystem-relative path to the matching files in the directory.</returns>
/// <remarks>Filesystem-relative paths use forward-slashes as directory separators.</remarks>
/// <remarks>Filesystem-relative paths use forward-slashes as directory separators.</remarks> //TODO check is this is true on linux and windows..
public IEnumerable<string> GetFiles(string path, string filter)
{
var fullPath = GetFullPath(path);