Exemple #1
0
 public static void TestI11_1()
 {
     Assert.AreEqual(1, Bridge1025.GetI11()[""]);
     Bridge1025.GetI11()[Bridge1025.GetI11()[1]] = 1;
     Bridge1025.GetI11()[1] = "";
     Assert.AreEqual(2, Bridge1025.GetI11().Prop1);
     Assert.AreEqual("test", Bridge1025.GetI11().Prop2);
     Bridge1025.GetI11().Prop2 = "";
     Bridge1025.GetI11().Foo();
     Bridge1025.GetI11().Event1 += () => { };
 }
Exemple #2
0
        public static void TestI11()
        {
            I11 i11 = Bridge1025.GetI11();

            Assert.AreEqual(1, i11[""]);
            i11[i11[1]] = 1;
            i11[1]      = "";
            Assert.AreEqual(2, i11.Prop1);
            Assert.AreEqual("test", i11.Prop2);
            i11.Prop2 = "";
            i11.Foo();
            i11.Event1 += () => { };
        }