diff --git a/appveyor.yml b/appveyor.yml index afa1742..05837c1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,7 +3,7 @@ skip_tags: true image: Visual Studio 2015 configuration: Release install: - - mklink /J Data "test/GenericMvc.Tests/Data/FileRepo" + - mklink /J Data "test/GenericMvc.Tests/Data" - ps: mkdir -Force ".\build\" | Out-Null - ps: Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.ps1" -OutFile ".\build\installcli.ps1" - ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetcli" diff --git a/test/GenericMvc.Tests/Data/FileRepo/test.bmp b/test/GenericMvc.Tests/Data/test.bmp similarity index 100% rename from test/GenericMvc.Tests/Data/FileRepo/test.bmp rename to test/GenericMvc.Tests/Data/test.bmp diff --git a/test/GenericMvc.Tests/Data/FileRepo/test.gif b/test/GenericMvc.Tests/Data/test.gif similarity index 100% rename from test/GenericMvc.Tests/Data/FileRepo/test.gif rename to test/GenericMvc.Tests/Data/test.gif diff --git a/test/GenericMvc.Tests/Data/FileRepo/test.ico b/test/GenericMvc.Tests/Data/test.ico similarity index 100% rename from test/GenericMvc.Tests/Data/FileRepo/test.ico rename to test/GenericMvc.Tests/Data/test.ico diff --git a/test/GenericMvc.Tests/Data/FileRepo/test.jpg b/test/GenericMvc.Tests/Data/test.jpg similarity index 100% rename from test/GenericMvc.Tests/Data/FileRepo/test.jpg rename to test/GenericMvc.Tests/Data/test.jpg diff --git a/test/GenericMvc.Tests/Data/FileRepo/test.png b/test/GenericMvc.Tests/Data/test.png similarity index 100% rename from test/GenericMvc.Tests/Data/FileRepo/test.png rename to test/GenericMvc.Tests/Data/test.png diff --git a/test/GenericMvc.Tests/Repositories/FileRepoTests.cs b/test/GenericMvc.Tests/Repositories/FileRepoTests.cs index 18f37c8..402a691 100644 --- a/test/GenericMvc.Tests/Repositories/FileRepoTests.cs +++ b/test/GenericMvc.Tests/Repositories/FileRepoTests.cs @@ -17,7 +17,7 @@ namespace GenericMvcTests /// public class FileRepoTests : IDisposable //, IRepositoryTests { - public const string TestFolder = "./Data/FileRepo"; + public const string TestFolder = "./Data"; public const string TestName = "test.png"; @@ -120,7 +120,7 @@ public async Task Any() Assert.True(fileExists); - var madeUpName = await FileRepo.Any(x => x.Name == "ThisShouldn'tExist.png"); + var madeUpName = await FileRepo.Any(x => x.Name == "ThisShouldntExist.png"); Assert.False(madeUpName); }