| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9de6f7b commit e9e5c60
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -102,6 +102,7 @@ | |||
| 102 | 102 | <Compile Include="TestPyWith.cs" /> | |
| 103 | 103 | <Compile Include="TestRuntime.cs" /> | |
| 104 | 104 | <Compile Include="TestPyScope.cs" /> | |
| 105 | + <Compile Include="TestsSuite.cs" /> | ||
| 105 | 106 | </ItemGroup> | |
| 106 | 107 | <ItemGroup> | |
| 107 | 108 | <ProjectReference Include="..\runtime\Python.Runtime.csproj"> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,18 @@ | |||
| 1 | + using NUnit.Framework; | ||
| 2 | + using Python.Runtime; | ||
| 3 | + | ||
| 4 | + namespace Python.EmbeddingTest | ||
| 5 | + { | ||
| 6 | + [SetUpFixture] | ||
| 7 | + public class TestsSuite | ||
| 8 | + { | ||
| 9 | + [OneTimeTearDown] | ||
| 10 | + public void FinalCleanup() | ||
| 11 | + { | ||
| 12 | + if (PythonEngine.IsInitialized) | ||
| 13 | + { | ||
| 14 | + PythonEngine.Shutdown(); | ||
| 15 | + } | ||
| 16 | + } | ||
| 17 | + } | ||
| 18 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments