Skip to content

Commit d0c7b56

Browse files
br-skfilmor
authored andcommitted
Add unit test for using a separate domain
1 parent 17df538 commit d0c7b56

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_common.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@ def test_netfx(example_netstandard):
9898
from clr_loader import get_netfx
9999

100100
netfx = get_netfx()
101+
asm = netfx.get_assembly(example_netstandard / "example.dll")
102+
103+
run_tests(asm)
104+
105+
106+
@pytest.mark.skipif(
107+
sys.platform != "win32", reason=".NET Framework only exists on Windows"
108+
)
109+
def test_netfx_separate_domain(example_netstandard):
110+
from clr_loader import get_netfx
111+
112+
netfx = get_netfx(domain="some_domain")
101113
asm = netfx.get_assembly(os.path.join(example_netstandard, "example.dll"))
102114

103115
run_tests(asm)

0 commit comments

Comments
 (0)