From 93b856132ee2c8ec4303ce8aa461bbb7e2bf3249 Mon Sep 17 00:00:00 2001 From: JosephWee Date: Wed, 3 May 2023 17:43:03 +0800 Subject: [PATCH] Implement GitHub Actions - Try fix Unit Tests Step --- NUnitTest/TicTacToeTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NUnitTest/TicTacToeTests.cs b/NUnitTest/TicTacToeTests.cs index 2094919..afc15e0 100644 --- a/NUnitTest/TicTacToeTests.cs +++ b/NUnitTest/TicTacToeTests.cs @@ -28,7 +28,7 @@ public class GameSetting [SetUp] public void TestSetup() { - string msbuildDir = new DirectoryInfo(Path.Combine(TestContext.CurrentContext.TestDirectory, @"..\..\..")).FullName; + string msbuildDir = new DirectoryInfo(Path.Combine(TestContext.CurrentContext.TestDirectory,"..","..","..")).FullName; var TicTacToeDataConnString = TestContext.Parameters.Get("TicTacToeDataConnString", string.Empty).Replace("$(MSBuildProjectDirectory)", msbuildDir); Assert.IsNotEmpty(TicTacToeDataConnString);