File tree Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 138
138
</Reference >
139
139
</ItemGroup >
140
140
<ItemGroup >
141
- <None Include =" Embeddingtest.nunit" />
142
141
<None Include =" ..\pythonnet.snk" />
143
142
<None Include =" packages.config" />
144
143
<None Include =" pythonnet.snk" Condition =" Exists('pythonnet.snk')" />
145
144
</ItemGroup >
146
145
<ItemGroup >
147
146
<Compile Include =" InitializeTest.cs" />
148
147
<Compile Include =" pyimport.cs" />
149
- <Compile Include =" pyiter.cs" >
150
- <SubType >Code</SubType >
151
- </Compile >
148
+ <Compile Include =" pyiter.cs" />
152
149
<Compile Include =" pyobject.cs" />
153
150
<Compile Include =" pythonexception.cs" />
154
151
</ItemGroup >
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public void SetUp()
20
20
21
21
/*
22
22
* Append the tests directory to sys.path
23
- * using reflection to circumvent the private modifires placed on most Runtime methods.
23
+ * using reflection to circumvent the private modifiers placed on most Runtime methods.
24
24
*/
25
25
const string s = @"../../../../tests" ;
26
26
Original file line number Diff line number Diff line change @@ -33,11 +33,13 @@ public void TestOnPyList()
33
33
list . Append ( new PyString ( "baz" ) ) ;
34
34
List < string > result = new List < string > ( ) ;
35
35
foreach ( PyObject item in list )
36
+ {
36
37
result . Add ( item . ToString ( ) ) ;
38
+ }
37
39
Assert . AreEqual ( 3 , result . Count ) ;
38
40
Assert . AreEqual ( "foo" , result [ 0 ] ) ;
39
41
Assert . AreEqual ( "bar" , result [ 1 ] ) ;
40
42
Assert . AreEqual ( "baz" , result [ 2 ] ) ;
41
43
}
42
44
}
43
- }
45
+ }
Original file line number Diff line number Diff line change @@ -30,4 +30,4 @@ public void TestUnicode()
30
30
Assert . AreEqual ( "foo\u00e9 " , s . ToString ( ) ) ;
31
31
}
32
32
}
33
- }
33
+ }
Original file line number Diff line number Diff line change @@ -44,4 +44,4 @@ public void TestNoError()
44
44
Assert . AreEqual ( "" , e . Message ) ;
45
45
}
46
46
}
47
- }
47
+ }
You can’t perform that action at this time.
0 commit comments