Skip to content

Commit 6b05a2c

Browse files
br-skfilmor
authored andcommitted
Add unit test for using a separate domain
1 parent be14ede commit 6b05a2c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_common.py

+12
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,18 @@ def test_netfx(example_netstandard):
8383
from clr_loader import get_netfx
8484

8585
netfx = get_netfx()
86+
asm = netfx.get_assembly(example_netstandard / "example.dll")
87+
88+
run_tests(asm)
89+
90+
91+
@pytest.mark.skipif(
92+
sys.platform != "win32", reason=".NET Framework only exists on Windows"
93+
)
94+
def test_netfx_separate_domain(example_netstandard):
95+
from clr_loader import get_netfx
96+
97+
netfx = get_netfx(domain="some_domain")
8698
asm = netfx.get_assembly(os.path.join(example_netstandard, "example.dll"))
8799

88100
run_tests(asm)

0 commit comments

Comments
 (0)