Try to make sure TestingDefaults is set to false else IsFileAllowedForUpload_WithWhitelist fails

This commit is contained in:
Sebastiaan Janssen
2017-05-21 12:42:54 +02:00
parent f517e750b9
commit d9b71995e1
2 changed files with 5 additions and 5 deletions

View File

@@ -195,7 +195,10 @@ namespace Umbraco.Tests.Configurations.UmbracoSettings
[TestCase("ashx", false)]
[TestCase("config", false)]
public void IsFileAllowedForUpload_WithWhitelist(string extension, bool expected)
{
{
// Make really sure that defaults are NOT used
TestingDefaults = false;
Debug.WriteLine("Extension being tested", extension);
Debug.WriteLine("AllowedUploadFiles: {0}", SettingsSection.Content.AllowedUploadFiles);
Debug.WriteLine("DisallowedUploadFiles: {0}", SettingsSection.Content.DisallowedUploadFiles);

View File

@@ -9,10 +9,7 @@ namespace Umbraco.Tests.Configurations.UmbracoSettings
{
public abstract class UmbracoSettingsTests
{
protected virtual bool TestingDefaults
{
get { return false; }
}
protected virtual bool TestingDefaults { get; set; }
[SetUp]
public void Init()