@skip('silverlight')
@skip('netstandard')
def test_xequals_call_for_optimization():
 import clr
 clr.AddReference('System.Configuration')
 from System.Configuration import ConfigurationManager
 c = ConfigurationManager.ConnectionStrings
 for i in xrange(3):
  if is_posix:
   AreEqual(2, c.Count)
  else:
   AreEqual(1, c.Count)
 for i in xrange(3):
  count = c.Count
  if is_posix:
   AreEqual(2, count)
  else:
   AreEqual(1, count)
  AreEqual(c.Count, count)
 for i in xrange(3):
  c[0].Name
 c.Count
 c.Count

@ skip ( 'silverlight' ) @ skip ( 'netstandard' ) def test_xequals_call_for_optimization ( ) : import clr clr . AddReference ( 'System.Configuration' ) from System . Configuration import ConfigurationManager c = ConfigurationManager . ConnectionStrings for i in xrange ( 3 ) : if is_posix : AreEqual ( 2 , c . Count ) else : AreEqual ( 1 , c . Count ) for i in xrange ( 3 ) : count = c . Count if is_posix : AreEqual ( 2 , count ) else : AreEqual ( 1 , count ) AreEqual ( c . Count , count ) for i in xrange ( 3 ) : c [ 0 ] . Name c . Count c . Count
testing specifically for system .