def test_cs_scenarios(self):
        from Merlin.Testing import Flag
        from Merlin.Testing.DefaultMemberSample import ClassWithItem, ClassWithget_Item, ClassWithset_Item, ClassWithDefaultMemberCtor
        x = ClassWithItem()
        self.assertRaises(TypeError, lambda: x[1])
        x.Item = 2
        self.assertEqual(x.Item, 2)

        x = ClassWithset_Item()

        def f():
            x[10] = 20

        self.assertRaises(TypeError, f)
        x.set_Item(3)
        Flag.Check(3)

        x = ClassWithget_Item()

        def f():
            return x[10]

        self.assertRaises(TypeError, f)
        self.assertEqual(x[10, 20], 30)
        self.assertRaises(TypeError, x.get_Item, 10)
        self.assertEqual(x.get_Item(10, 20), 30)

        # try other types
        x = ClassWithDefaultMemberCtor(1)
 def test_cs_scenarios(self):
     from Merlin.Testing import Flag
     from Merlin.Testing.DefaultMemberSample import ClassWithItem, ClassWithget_Item, ClassWithset_Item, ClassWithDefaultMemberCtor
     x = ClassWithItem()
     self.assertRaises(TypeError, lambda: x[1])
     x.Item = 2
     self.assertEqual(x.Item, 2)
     
     x = ClassWithset_Item()
     def f(): x[10] = 20
     self.assertRaises(TypeError, f)
     x.set_Item(3)
     Flag.Check(3)
     
     x = ClassWithget_Item()
     def f(): return x[10]
     self.assertRaises(TypeError, f)
     self.assertEqual(x[10, 20], 30)
     self.assertRaises(TypeError, x.get_Item, 10)
     self.assertEqual(x.get_Item(10, 20), 30)
     
     # try other types
     x = ClassWithDefaultMemberCtor(1)