@@ -1129,44 +1129,6 @@ def GetValue(self, fixture):
11291129 }
11301130 }
11311131
1132- [ Test ]
1133- public void TestGetMisspelledDynamicObjectPropertySuggestsSimilarMembers ( )
1134- {
1135- dynamic model = PyModule . FromString ( "module" , @"
1136- from clr import AddReference
1137- AddReference(""Python.EmbeddingTest"")
1138- AddReference(""System"")
1139-
1140- from Python.EmbeddingTest import *
1141-
1142- class TestGetMisspelledDynamicObjectPropertySuggestsSimilarMembers:
1143- def GetValue(self, fixture):
1144- try:
1145- # 'non_dynamic_propertyy' is a near miss of the snake_case alias of the
1146- # real 'NonDynamicProperty' member.
1147- prop = fixture.non_dynamic_propertyy
1148- except AttributeError as e:
1149- return e
1150-
1151- return None
1152- " ) . GetAttr ( "TestGetMisspelledDynamicObjectPropertySuggestsSimilarMembers" ) . Invoke ( ) ;
1153-
1154- dynamic fixture = new DynamicFixture ( ) ;
1155-
1156- using ( Py . GIL ( ) )
1157- {
1158- var result = model . GetValue ( fixture ) as PyObject ;
1159- Assert . IsFalse ( result . IsNone ( ) ) ;
1160- Assert . AreEqual ( result . PyType , Exceptions . AttributeError ) ;
1161-
1162- // Suggestions are emitted in snake_case, matching the fork's PEP8-style API.
1163- var message = result . ToString ( ) ;
1164- Assert . That ( message , Does . Contain ( "non_dynamic_propertyy" ) ) ;
1165- Assert . That ( message , Does . Contain ( "Did you mean" ) ) ;
1166- Assert . That ( message , Does . Contain ( "non_dynamic_property" ) ) ;
1167- }
1168- }
1169-
11701132 public class CSharpTestClass
11711133 {
11721134 public string CSharpProperty { get ; set ; }
0 commit comments