Remove the now irrelevant static data test.
This commit is contained in:
parent
24d9f97717
commit
c926808878
|
@ -66,7 +66,6 @@
|
||||||
<Compile Include="Repositories\TestItemFilterScriptRepository.cs" />
|
<Compile Include="Repositories\TestItemFilterScriptRepository.cs" />
|
||||||
<Compile Include="Services\TestHTTPService.cs" />
|
<Compile Include="Services\TestHTTPService.cs" />
|
||||||
<Compile Include="Services\TestItemFilterPersistenceService.cs" />
|
<Compile Include="Services\TestItemFilterPersistenceService.cs" />
|
||||||
<Compile Include="Services\TestStaticDataService.cs" />
|
|
||||||
<Compile Include="Services\TestUpdateService.cs" />
|
<Compile Include="Services\TestUpdateService.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
using Filtration.Common.Services;
|
|
||||||
using Filtration.Services;
|
|
||||||
using Moq;
|
|
||||||
using NUnit.Framework;
|
|
||||||
|
|
||||||
namespace Filtration.Tests.Services
|
|
||||||
{
|
|
||||||
[TestFixture]
|
|
||||||
public class TestStaticDataService
|
|
||||||
{
|
|
||||||
[Test]
|
|
||||||
public void Constructor_CallsFileSystemService()
|
|
||||||
{
|
|
||||||
// Arrange
|
|
||||||
|
|
||||||
var mockFileSystemService = new Mock<IFileSystemService>();
|
|
||||||
mockFileSystemService.Setup(f => f.ReadFileAsString(It.IsAny<string>())).Returns("TestResult").Verifiable();
|
|
||||||
|
|
||||||
var service = new StaticDataService(mockFileSystemService.Object);
|
|
||||||
|
|
||||||
// Act
|
|
||||||
|
|
||||||
// Assert
|
|
||||||
mockFileSystemService.Verify();
|
|
||||||
}
|
|
||||||
|
|
||||||
[Ignore("Integration Test")]
|
|
||||||
[Test]
|
|
||||||
public void Constructor_ReadsFromFileCorrectly()
|
|
||||||
{
|
|
||||||
// Arrange
|
|
||||||
|
|
||||||
var fileSystemService = new FileSystemService();
|
|
||||||
|
|
||||||
var service = new StaticDataService(fileSystemService);
|
|
||||||
|
|
||||||
// Act
|
|
||||||
|
|
||||||
// Assert
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue