Updated NuGet packages and fixed broken tests

This commit is contained in:
Ben Wallis
2015-12-13 19:41:33 +00:00
parent c5eb27d08d
commit 94836f9673
20 changed files with 303 additions and 174 deletions

View File

@@ -1,9 +1,11 @@
using System.IO;
using System;
using System.IO;
using System.Threading.Tasks;
using Filtration.ObjectModel;
using Filtration.Repositories;
using Filtration.Services;
using Filtration.ViewModels;
using FluentAssertions;
using Moq;
using NUnit.Framework;
@@ -51,9 +53,10 @@ namespace Filtration.Tests.Repositories
var repository = new ItemFilterScriptRepository(mockPersistenceService.Object, mockItemFilterScriptViewModelFactory.Object);
// Act
Func<Task<IItemFilterScriptViewModel>> result = async () => await repository.LoadScriptFromFileAsync(testInputPath);
// Assert
Assert.Throws<IOException>(async () => await repository.LoadScriptFromFileAsync(testInputPath));
result.ShouldThrow<IOException>();
}
[Test]