From 7a9c884377880014cda34e82257617836da8596b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E9=9C=87=E5=B7=8D?= Date: Wed, 22 May 2024 21:35:08 +0800 Subject: [PATCH] #2708 #2079 move GraphTests to AutoGen.Tests; delete AutoGen.Core.Tests project --- dotnet/AutoGen.sln | 10 ------- .../AutoGen.Core.Tests.csproj | 26 ------------------- .../GroupChat/GraphTests.cs | 11 ++++---- 3 files changed, 6 insertions(+), 41 deletions(-) delete mode 100644 dotnet/test/AutoGen.Core.Tests/AutoGen.Core.Tests.csproj rename dotnet/test/{AutoGen.Core.Tests => AutoGen.Tests}/GroupChat/GraphTests.cs (55%) diff --git a/dotnet/AutoGen.sln b/dotnet/AutoGen.sln index 1b8a51d974dc..d3abffc981f9 100644 --- a/dotnet/AutoGen.sln +++ b/dotnet/AutoGen.sln @@ -8,9 +8,6 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{18BF8DD7-0585-48BF-8F97-AD333080CE06}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{F823671B-3ECA-4AE6-86DA-25E920D3FE64}" - ProjectSection(SolutionItems) = preProject - test\AutoGen.Core.Tests\AutoGen.Core.Tests.csproj = test\AutoGen.Core.Tests\AutoGen.Core.Tests.csproj - EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.Tests", "test\AutoGen.Tests\AutoGen.Tests.csproj", "{FDD99AEC-4C57-4020-B23F-650612856102}" EndProject @@ -46,8 +43,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Autogen.Ollama", "src\Autog EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Autogen.Ollama.Tests", "test\Autogen.Ollama.Tests\Autogen.Ollama.Tests.csproj", "{C24FDE63-952D-4F8E-A807-AF31D43AD675}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGen.Core.Tests", "test\AutoGen.Core.Tests\AutoGen.Core.Tests.csproj", "{C72D435A-86F8-4276-BF4C-FF00335E7014}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -122,10 +117,6 @@ Global {C24FDE63-952D-4F8E-A807-AF31D43AD675}.Debug|Any CPU.Build.0 = Debug|Any CPU {C24FDE63-952D-4F8E-A807-AF31D43AD675}.Release|Any CPU.ActiveCfg = Release|Any CPU {C24FDE63-952D-4F8E-A807-AF31D43AD675}.Release|Any CPU.Build.0 = Release|Any CPU - {C72D435A-86F8-4276-BF4C-FF00335E7014}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C72D435A-86F8-4276-BF4C-FF00335E7014}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C72D435A-86F8-4276-BF4C-FF00335E7014}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C72D435A-86F8-4276-BF4C-FF00335E7014}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -148,7 +139,6 @@ Global {B61388CA-DC73-4B7F-A7B2-7B9A86C9229E} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64} {A4EFA175-44CC-44A9-B93E-1C7B6FAC38F1} = {18BF8DD7-0585-48BF-8F97-AD333080CE06} {C24FDE63-952D-4F8E-A807-AF31D43AD675} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64} - {C72D435A-86F8-4276-BF4C-FF00335E7014} = {F823671B-3ECA-4AE6-86DA-25E920D3FE64} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {93384647-528D-46C8-922C-8DB36A382F0B} diff --git a/dotnet/test/AutoGen.Core.Tests/AutoGen.Core.Tests.csproj b/dotnet/test/AutoGen.Core.Tests/AutoGen.Core.Tests.csproj deleted file mode 100644 index 8d3803bc2aa1..000000000000 --- a/dotnet/test/AutoGen.Core.Tests/AutoGen.Core.Tests.csproj +++ /dev/null @@ -1,26 +0,0 @@ - - - - netstandard2.0 - enable - enable - - false - true - - - - - - - - - - - - - - - - - diff --git a/dotnet/test/AutoGen.Core.Tests/GroupChat/GraphTests.cs b/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs similarity index 55% rename from dotnet/test/AutoGen.Core.Tests/GroupChat/GraphTests.cs rename to dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs index 9354a504560c..77e2c99dcd13 100644 --- a/dotnet/test/AutoGen.Core.Tests/GroupChat/GraphTests.cs +++ b/dotnet/test/AutoGen.Tests/GroupChat/GraphTests.cs @@ -1,17 +1,18 @@  -namespace AutoGen.Core.Tests +using Xunit; + +namespace AutoGen.Tests { - [TestClass()] public class GraphTests { - [TestMethod()] + [Fact] public void GraphTest() { var graph1 = new Graph(); - Assert.IsNotNull(graph1); + Assert.NotNull(graph1); var graph2 = new Graph(null); - Assert.IsNotNull(graph2); + Assert.NotNull(graph2); } } }