def test_vb_scenarios():
 x = ClassWithOverloadDefaultIndexer()
 for i in range(3):
  x.MyProperty[i] = (3 * i)
  AreEqual(x.MyProperty[i], (3 * i))
 for i in range(2, 4):
  for j in range(6, 9):
   a = (i + j)
 x = StructWithDefaultIndexer()
 x.Init()
 x = ClassWithNotExistingMember()
 AreEqual(x.MyProperty[1], 0)
 x.MyProperty[1] = 10
 AreEqual(x.MyProperty[1], 10)
 for t in [StructImplementsIDefaultIndexer, ClassImplementsIDefaultIndexer]:
  x = t()
 x = DerivedClass()
 x.MyProperty[2] = 4
 AreEqual(x.MyProperty[2], 4)

def test_vb_scenarios ( ) : x = ClassWithOverloadDefaultIndexer ( ) for i in range ( 3 ) : x . MyProperty [ i ] = ( 3 * i ) AreEqual ( x . MyProperty [ i ] , ( 3 * i ) ) for i in range ( 2 , 4 ) : for j in range ( 6 , 9 ) : a = ( i + j ) x = StructWithDefaultIndexer ( ) x . Init ( ) x = ClassWithNotExistingMember ( ) AreEqual ( x . MyProperty [ 1 ] , 0 ) x . MyProperty [ 1 ] = 10 AreEqual ( x . MyProperty [ 1 ] , 10 ) for t in [ StructImplementsIDefaultIndexer , ClassImplementsIDefaultIndexer ] : x = t ( ) x = DerivedClass ( ) x . MyProperty [ 2 ] = 4 AreEqual ( x . MyProperty [ 2 ] , 4 )
vb supported scenarios .