Skip to content
This repository was archived by the owner on Jul 22, 2023. It is now read-only.

Commit 4ab9f1c

Browse files
committed
Adds code comments to CrossDomainObject test
Addresses comment: lostmu: Add a comment explaining the intent of this method or extract this code into a separate method with clear name. pythonnet#958
1 parent 4f0420e commit 4ab9f1c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/embed_tests/TestDomainReload.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public override ValueType Execute(ValueType arg)
8585
{
8686
try
8787
{
88+
// Create a C# user-defined object in Python. Asssing some values.
8889
Type type = typeof(Python.EmbeddingTest.Domain.MyClass);
8990
string code = string.Format(@"
9091
import clr
@@ -165,6 +166,11 @@ public override ValueType Execute(ValueType arg)
165166
}
166167
}
167168

169+
/// <summary>
170+
/// Create a C# custom object in a domain, in python code.
171+
/// Unload the domain, create a new domain.
172+
/// Make sure the C# custom object created in the previous domain has been re-created
173+
/// </summary>
168174
[Test]
169175
public static void CrossDomainObject()
170176
{

0 commit comments

Comments
 (0)