Files
Umbraco-CMS/src/Umbraco.Tests/IO/FileSystemProviderManagerTests.cs

30 lines
702 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Umbraco.Core.IO;
namespace Umbraco.Tests.IO
{
[TestFixture]
public class FileSystemProviderManagerTests
{
[Test]
public void Can_Get_File_System()
{
var fs = FileSystemProviderManager.Current.GetFileSystemProvider(FileSystemProvider.Media);
Assert.NotNull(fs);
}
[Test]
public void Can_Get_Typed_File_System()
{
var fs = FileSystemProviderManager.Current.GetFileSystemProvider<MediaFileSystem>();
Assert.NotNull(fs);
}
}
}