FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GitHub Viewer

using NUnit.Framework; using Python.Runtime; namespace Python.EmbeddingTest { public class ClassManagerTests { [OneTimeSetUp] public void SetUp() { PythonEngine.Initialize(); } [OneTimeTearDown] public void Dispose() { PythonEngine.Shutdown(); } [Test] public void NestedClassDerivingFromParent() { var f = new NestedTestContainer().ToPython(); f.GetAttr(nameof(NestedTestContainer.Bar)); } } public class NestedTestParent { public class Nested : NestedTestParent { } } public class NestedTestContainer { public NestedTestParent Bar = new NestedTestParent.Nested(); } }

Back | FazBrowse Home | New Git URL