mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-14 23:53:37 +01:00
* netcore 2.1 * SimpleCommandLineParserTests * tests * SimpleCommandLineParserTests * test report * AspNetCoreSelfHost * Fixed Resharper warnings * tests * . * ResponseWithProxyTests ResponseWithProxyTests * postmanecho
37 lines
978 B
C#
37 lines
978 B
C#
using System;
|
|
using System.IO;
|
|
using NFluent;
|
|
using WireMock.Handlers;
|
|
using Xunit;
|
|
|
|
namespace WireMock.Net.Tests.Handlers
|
|
{
|
|
public class LocalFileSystemHandlerTests
|
|
{
|
|
private readonly LocalFileSystemHandler _sut = new LocalFileSystemHandler();
|
|
|
|
[Fact]
|
|
public void LocalFileSystemHandler_GetMappingFolder()
|
|
{
|
|
// Act
|
|
string result = _sut.GetMappingFolder();
|
|
|
|
// Assert
|
|
Check.That(result).EndsWith(Path.Combine("__admin", "mappings"));
|
|
}
|
|
|
|
[Fact]
|
|
public void LocalFileSystemHandler_CreateFolder_Throws()
|
|
{
|
|
// Act
|
|
Check.ThatCode(() => _sut.CreateFolder(null)).Throws<ArgumentNullException>();
|
|
}
|
|
|
|
[Fact]
|
|
public void LocalFileSystemHandler_WriteMappingFile_Throws()
|
|
{
|
|
// Act
|
|
Check.ThatCode(() => _sut.WriteMappingFile(null, null)).Throws<ArgumentNullException>();
|
|
}
|
|
}
|
|
} |