mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-05 23:57:20 +02:00
fixing linux tests.
This commit is contained in:
parent
247b72282f
commit
299d4f53b0
@ -11,7 +11,7 @@
|
|||||||
namespace NzbDrone.Api.Test
|
namespace NzbDrone.Api.Test
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class DirectoryLookupServiceFixture :TestBase<DirectoryLookupService>
|
public class DirectoryLookupServiceFixture : TestBase<DirectoryLookupService>
|
||||||
{
|
{
|
||||||
private const string RECYCLING_BIN = "$Recycle.Bin";
|
private const string RECYCLING_BIN = "$Recycle.Bin";
|
||||||
private const string SYSTEM_VOLUME_INFORMATION = "System Volume Information";
|
private const string SYSTEM_VOLUME_INFORMATION = "System Volume Information";
|
||||||
@ -53,7 +53,7 @@ private void SetupFolders(string root)
|
|||||||
[Test]
|
[Test]
|
||||||
public void should_not_contain_recycling_bin_for_root_of_drive()
|
public void should_not_contain_recycling_bin_for_root_of_drive()
|
||||||
{
|
{
|
||||||
const string root = @"C:\";
|
string root = @"C:\".AsOsAgnostic();
|
||||||
SetupFolders(root);
|
SetupFolders(root);
|
||||||
|
|
||||||
Mocker.GetMock<IDiskProvider>()
|
Mocker.GetMock<IDiskProvider>()
|
||||||
@ -64,9 +64,9 @@ public void should_not_contain_recycling_bin_for_root_of_drive()
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void should_not_contain_system_volume_information_for_root_of_drive()
|
public void should_not_contain_system_volume_information()
|
||||||
{
|
{
|
||||||
const string root = @"C:\";
|
string root = @"C:\".AsOsAgnostic();
|
||||||
SetupFolders(root);
|
SetupFolders(root);
|
||||||
|
|
||||||
Mocker.GetMock<IDiskProvider>()
|
Mocker.GetMock<IDiskProvider>()
|
||||||
@ -79,7 +79,7 @@ public void should_not_contain_system_volume_information_for_root_of_drive()
|
|||||||
[Test]
|
[Test]
|
||||||
public void should_not_contain_recycling_bin_or_system_volume_information_for_root_of_drive()
|
public void should_not_contain_recycling_bin_or_system_volume_information_for_root_of_drive()
|
||||||
{
|
{
|
||||||
const string root = @"C:\";
|
string root = @"C:\";
|
||||||
SetupFolders(root);
|
SetupFolders(root);
|
||||||
|
|
||||||
Mocker.GetMock<IDiskProvider>()
|
Mocker.GetMock<IDiskProvider>()
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
@ -48,7 +49,7 @@ public void GetProcessById_should_return_null_for_invalid_process(int processId)
|
|||||||
[Test]
|
[Test]
|
||||||
public void Should_be_able_to_start_process()
|
public void Should_be_able_to_start_process()
|
||||||
{
|
{
|
||||||
var startInfo = new ProcessStartInfo(DummyApp.DUMMY_PROCCESS_NAME + ".exe");
|
var startInfo = new ProcessStartInfo(Path.Combine(Directory.GetCurrentDirectory(), DummyApp.DUMMY_PROCCESS_NAME + ".exe"));
|
||||||
|
|
||||||
|
|
||||||
Subject.Exists(DummyApp.DUMMY_PROCCESS_NAME).Should()
|
Subject.Exists(DummyApp.DUMMY_PROCCESS_NAME).Should()
|
||||||
|
Loading…
Reference in New Issue
Block a user