From 79cf99438619b9af0d432567b01d70272288224b Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Sun, 16 Jun 2019 17:56:24 +0300 Subject: [PATCH] Refactor dummy tests --- CliFx.Tests/DummyTests.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CliFx.Tests/DummyTests.cs b/CliFx.Tests/DummyTests.cs index d41d443..d2e89ba 100644 --- a/CliFx.Tests/DummyTests.cs +++ b/CliFx.Tests/DummyTests.cs @@ -1,5 +1,4 @@ -using System.IO; -using System.Threading.Tasks; +using System.Threading.Tasks; using CliWrap; using NUnit.Framework; @@ -8,7 +7,7 @@ namespace CliFx.Tests [TestFixture] public class DummyTests { - private static string DummyFilePath => Path.Combine(TestContext.CurrentContext.TestDirectory, "CliFx.Tests.Dummy.exe"); + private static string DummyFilePath => typeof(Dummy.Program).Assembly.Location; [Test] [TestCase("", "Hello world")]