@@ -26,7 +26,7 @@ def Y(self):
26
26
return self ._x * 2
27
27
28
28
def test_set_and_get_property_from_py ():
29
- """Test usage of CLR defined reference types ."""
29
+ """Test setting and getting clr-accessible properties from python ."""
30
30
t = ExampleClrClass ()
31
31
assert t .X == 3
32
32
assert t .Y == 3 * 2
@@ -35,7 +35,7 @@ def test_set_and_get_property_from_py():
35
35
assert t .Y == 4 * 2
36
36
37
37
def test_set_and_get_property_from_clr ():
38
- """Test usage of CLR defined reference types ."""
38
+ """Test setting and getting clr-accessible properties from the clr ."""
39
39
t = ExampleClrClass ()
40
40
assert t .GetType ().GetProperty ("X" ).GetValue (t ) == 3
41
41
assert t .GetType ().GetProperty ("Y" ).GetValue (t ) == 3 * 2
@@ -45,7 +45,7 @@ def test_set_and_get_property_from_clr():
45
45
46
46
47
47
def test_set_and_get_property_from_clr_and_py ():
48
- """Test usage of CLR defined reference types ."""
48
+ """Test setting and getting clr-accessible properties alternatingly from the clr and from python ."""
49
49
t = ExampleClrClass ()
50
50
assert t .GetType ().GetProperty ("X" ).GetValue (t ) == 3
51
51
assert t .GetType ().GetProperty ("Y" ).GetValue (t ) == 3 * 2
@@ -63,9 +63,11 @@ def test_set_and_get_property_from_clr_and_py():
63
63
assert t .Y == 5 * 2
64
64
65
65
def test_method_invocation_from_py ():
66
+ """Test calling a clr-accessible method from python."""
66
67
t = ExampleClrClass ()
67
68
assert t .test (41 ) == 41 * 2
68
69
69
70
def test_method_invocation_from_clr ():
71
+ """Test calling a clr-accessible method from the clr."""
70
72
t = ExampleClrClass ()
71
73
assert t .GetType ().GetMethod ("test" ).Invoke (t , [37 ]) == 37 * 2
0 commit comments