@skip('silverlight', 'multiple_execute', 'win32')
def test_c1cs():
 if (not has_csc()):
  return
 c1cs = get_local_filename('c1.cs')
 outp = sys.exec_prefix
 compileAndRef('c1', c1cs, '/d:BAR1')
 import Foo
 class c1Child(Foo.Bar, ):
  pass
 o = c1Child()
 AreEqual(o.Method(), 'In bar1')
 compileAndRef('c1_b', c1cs)
 import Foo
 class c2Child(Foo.Bar, ):
  pass
 o = c2Child()
 AreEqual(o.Method(), 'In bar2')

@ skip ( 'silverlight' , 'multiple_execute' , 'win32' ) def test_c1cs ( ) : if ( not has_csc ( ) ) : return c1cs = get_local_filename ( 'c1.cs' ) outp = sys . exec_prefix compileAndRef ( 'c1' , c1cs , '/d:BAR1' ) import Foo class c1Child ( Foo . Bar , ) : pass o = c1Child ( ) AreEqual ( o . Method ( ) , 'In bar1' ) compileAndRef ( 'c1_b' , c1cs ) import Foo class c2Child ( Foo . Bar , ) : pass o = c2Child ( ) AreEqual ( o . Method ( ) , 'In bar2' )
verify re-loading an assembly causes the new type to show up .