Separate ASP.NET Core tests into a distinct project and make the main test project netfx compatible. (#254)
* Separate ASP.NET Core tests into a distinct project and make the main test project netfx compatible. * Fix merge conflicts. * Update tests/ModelContextProtocol.Tests/ModelContextProtocol.Tests.csproj Co-authored-by: Stephen Halter <halter73@gmail.com> * Revert "Fix merge conflicts." This reverts commit 852169b96786bad2144795540fa164e20b4b197e. * Fix merge conflicts --------- Co-authored-by: Stephen Halter <halter73@gmail.com>
This commit is contained in:
parent
08f9cdbf7d
commit
39ab6cde0d
1 changed files with 324 additions and 63 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using ModelContextProtocol.Client;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using ModelContextProtocol.Client;
|
||||
using ModelContextProtocol.Protocol.Transport;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ModelContextProtocol.Tests;
|
||||
|
||||
|
|
@ -25,11 +26,11 @@ public class ClientIntegrationTestFixture
|
|||
|
||||
TestServerTransportOptions = new()
|
||||
{
|
||||
Command = OperatingSystem.IsWindows() ? "TestServer.exe" : "dotnet",
|
||||
Command = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "TestServer.exe" : "dotnet",
|
||||
Name = "TestServer",
|
||||
};
|
||||
|
||||
if (!OperatingSystem.IsWindows())
|
||||
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
// Change to Arguments to "mcp-server-everything" if you want to run the server locally after creating a symlink
|
||||
TestServerTransportOptions.Arguments = ["TestServer.dll"];
|
||||
|
|
|
|||
Loading…
Reference in a new issue