Ejemplo n.º 1
0
    testtypes()
    {
        @abstract.@as a = @abstract.@as.@base;
        test(a == @abstract.@as.@base);
        @abstract.@break b = new @abstract.@break();
        b.@readonly = 0;
        test(b.@readonly == 0);
        @abstract.@case c = new caseI();
        test(c != null);
        @abstract.@casePrx c1 = null;
        test(c1 == null);
        int c2 = 0;

        if (c1 != null)
        {
            c1.@catch(0, out c2);
        }
        @abstract.@decimal d = new decimalI();
        test(d != null);
        @abstract.@decimalPrx d1 = null;
        if (d1 != null)
        {
            d1.@default();
        }
        test(d1 == null);
        @abstract.@delegate e = new delegateI();
        test(e != null);
        @abstract.@delegatePrx e1 = null;
        test(e1 == null);
        @abstract.@explicit f = new explicitI();
        test(f != null);
        @abstract.@explicitPrx f1 = null;
        if (f1 != null)
        {
            f1.@catch(0, out c2);
            f1.@default();
        }
        test(f1 == null);
        @abstract.@extern l = new @abstract.@extern();
        test(l != null);
        @abstract.@finally g = new @abstract.@finally();
        test(g != null);
        Dictionary <string, @abstract.@break> g2 = new Dictionary <string, @abstract.@break>();

        test(g2 != null);
        @abstract.@fixed h = new @abstract.@fixed();
        h.@for = 0;
        test(h != null);
        @abstract.@foreach i = new @abstract.@foreach();
        i.@for  = 0;
        i.@goto = 1;
        i.@if   = 2;
        test(i != null);
        @abstract.@implicit j = new implicitI();
        test(j != null);
        int k = @[email protected];

        test(k == 0);
    }
Ejemplo n.º 2
0
    testtypes()
    {
        @abstract.@as a = @abstract.@as.@base;
        test(a == @abstract.@as.@base);
        @abstract.@break b = new @abstract.@break();
        b.@readonly = 0;
        test(b.@readonly == 0);
        @abstract.@case c = new caseI();
        test(c != null);
        @abstract.IcasePrx c1 = null;
        test(c1 == null);
        int c2 = 0;

        if (c1 != null)
        {
            c2 = c1.@catch(0);
        }
        @abstract.@decimal d = new decimalI();
        test(d != null);
        @abstract.IdecimalPrx d1 = null;
        if (d1 != null)
        {
            d1.@default();
        }
        test(d1 == null);
        @abstract.@delegate e = new @abstract.@delegate();
        test(e != null);
        @abstract.@delegate e1 = null;
        test(e1 == null);
        @abstract.IexplicitPrx f1 = null;
        if (f1 != null)
        {
            c2 = f1.@catch(0);
            f1.@default();
        }
        test(f1 == null);
        Dictionary <string, @abstract.@break> g2 = new Dictionary <string, @abstract.@break>();

        test(g2 != null);
        @abstract.@fixed h = new @abstract.@fixed();
        h.@for = 0;
        test(h != null);
        @abstract.@foreach i = new @abstract.@foreach();
        i.@for  = 0;
        i.@goto = 1;
        i.@if   = 2;
        test(i != null);
        int j = @[email protected];

        test(j == 0);
    }
Ejemplo n.º 3
0
 static void testtypes()
 {
     @abstract.@as a = @abstract.@as.@base;
     test(a == @abstract.@as.@base);
     @abstract.@break b = new @abstract.@break();
     b.@readonly = 0;
     test(b.@readonly == 0);
     @abstract.@case c = new caseI();
     test(c != null);
     @abstract.@casePrx c1 = null;
     test(c1 == null);
     int c2 = 0;
     if(c1 != null)
     {
         c1.@catch(0, out c2);
     }
     @abstract.@decimal d = new decimalI();
     test(d != null);
     @abstract.@decimalPrx d1 = null;
     if(d1 != null)
     {
         d1.@default();
     }
     test(d1 == null);
     @abstract.@delegate e = new delegateI();
     test(e != null);
     @abstract.@delegatePrx e1 = null;
     test(e1 == null);
     @abstract.@explicit f = new explicitI();
     test(f != null);
     @abstract.@explicitPrx f1 = null;
     if(f1 != null)
     {
         f1.@catch(0, out c2);
         f1.@default();
     }
     test(f1 == null);
     @abstract.@extern l = new @abstract.@extern();
     test(l != null);
     @abstract.@finally g = new @abstract.@finally();
     test(g != null);
     Dictionary<string, @abstract.@break> g2 = new Dictionary<string, @abstract.@break>();
     test(g2 != null);
     @abstract.@fixed h = new @abstract.@fixed();
     h.@for = 0;
     test(h != null);
     @abstract.@foreach i = new @abstract.@foreach();
     i.@for = 0;
     i.@goto = 1;
     i.@if = 2;
     test(i != null);
     @abstract.@implicit j = new implicitI();
     test(j != null);
     int k = @[email protected];
     test(k == 0);
 }
Ejemplo n.º 4
0
    testtypes()
    {
        var a = @as.@base;

        Assert(a == @as.@base);
        var b = new @break();

        b.@readonly = 0;
        Assert(b.@readonly == 0);
        var c = new caseI();

        Assert(c != null);
        IcasePrx?c1 = null;

        Assert(c1 == null);
        int c2 = 0;

        if (c1 != null)
        {
            c2 = c1.@catch(0);
        }
        var d = new decimalI();

        Assert(d != null);
        IdecimalPrx?d1 = null;

        if (d1 != null)
        {
            d1.@default();
        }
        Assert(d1 == null);
        var e = new @delegate();

        Assert(e != null);
        @delegate?e1 = null;

        Assert(e1 == null);
        IexplicitPrx?f1 = null;

        if (f1 != null)
        {
            c2 = f1.@catch(0);
            f1.@default();
        }
        Assert(f1 == null);
        var g2 = new Dictionary <string, @break>();

        Assert(g2 != null);
        var h = new @fixed();

        h.@for = 0;
        Assert(h != null);
        var i = new @foreach();

        i.@for  = 0;
        i.@goto = 1;
        i.@if   = 2;
        Assert(i != null);
        var j = Constants.@protected;

        Assert(j == 0);
        var k = Constants.@public;

        Assert(k == 1);
    }
Ejemplo n.º 5
0
    testtypes()
    {
        var a = @as.@base;

        test(a == @as.@base);
        var b = new @break();

        b.@readonly = 0;
        test(b.@readonly == 0);
        var c = new caseI();

        test(c != null);
        IcasePrx c1 = null;

        test(c1 == null);
        int c2 = 0;

        if (c1 != null)
        {
            c2 = c1.@catch(0);
        }
        var d = new decimalI();

        test(d != null);
        IdecimalPrx d1 = null;

        if (d1 != null)
        {
            d1.@default();
        }
        test(d1 == null);
        var e = new @delegate();

        test(e != null);
        @delegate e1 = null;

        test(e1 == null);
        IexplicitPrx f1 = null;

        if (f1 != null)
        {
            c2 = f1.@catch(0);
            f1.@default();
        }
        test(f1 == null);
        var g2 = new Dictionary <string, @break>();

        test(g2 != null);
        var h = new @fixed();

        h.@for = 0;
        test(h != null);
        var i = new @foreach();

        i.@for  = 0;
        i.@goto = 1;
        i.@if   = 2;
        test(i != null);
        var j = @protected.value;

        test(j == 0);
    }