示例#1
0
    public static void Run()
    {
        LongE?s = Helper.Create(default(LongE));

        Console.WriteLine("--- LongE? s = Helper.Create(default(LongE)) ---");
        Assert.IsTrue(BoxUnboxToNQ(s));
        Assert.IsTrue(BoxUnboxToQ(s));

        Console.WriteLine("--- LongE? s = null ---");
        s = null;

        Assert.IsTrue(BoxUnboxToNQ(s));
        Assert.IsFalse(BoxUnboxToQ(s));

        LongE u = Helper.Create(default(LongE));

        Console.WriteLine("--- LongE u = Helper.Create(default(LongE)) ----");
        Assert.IsTrue(BoxUnboxToNQ(u));
        Assert.IsTrue(BoxUnboxToQ(u));
    }
示例#2
0
 public static bool Compare(LongE?val, LongE val1)
 {
     return(Compare(val.Value, val1));
 }
示例#3
0
 public static bool Compare(LongE val, LongE val1)
 {
     return(val == val1);
 }
示例#4
0
 public static LongE Create(LongE val)
 {
     return((LongE)34);
 }
示例#5
0
 public static bool Compare(LongE?val, LongE val1)
 {
     return(val == null ? false : Compare(val.Value, val1));
 }
示例#6
0
    }  // end of test case 0002

    private static void TestCase0003()
    {
        {
            LongE v = default(LongE);
            Enum  o = v;
            Eval(0385, o is IntE, false);
            Eval(0386, o is IntE[], false);
            Eval(0387, o is IntE?, false);
            Eval(0388, o is IntE?[], false);
            Eval(0389, o is ByteE, false);
            Eval(0390, o is ByteE[], false);
            Eval(0391, o is ByteE?, false);
            Eval(0392, o is ByteE?[], false);
            Eval(0393, o is LongE, true);
            Eval(0394, o is LongE[], false);
            Eval(0395, o is LongE?, true);
            Eval(0396, o is LongE?[], false);
            Eval(0397, o is object, true);
            Eval(0398, o is object[], false);
            Eval(0399, o is string, false);
            Eval(0400, o is string[], false);
            Eval(0401, o is ValueType, true);
            Eval(0402, o is ValueType[], false);
            Eval(0403, o is Array, false);
            Eval(0404, o is Array[], false);
            Eval(0405, o is Enum, true);
            Eval(0406, o is Enum[], false);
            Eval(0407, o is Delegate, false);
            Eval(0408, o is Delegate[], false);
            Eval(0409, o is MulticastDelegate, false);
            Eval(0410, o is MulticastDelegate[], false);
            Eval(0411, o is IEmpty, false);
            Eval(0412, o is IEmpty[], false);
            Eval(0413, o is INotEmpty, false);
            Eval(0414, o is INotEmpty[], false);
            Eval(0415, o is IEmptyGen <int>, false);
            Eval(0416, o is IEmptyGen <int>[], false);
            Eval(0417, o is INotEmptyGen <int>, false);
            Eval(0418, o is INotEmptyGen <int>[], false);
            Eval(0419, o is SimpleDelegate, false);
            Eval(0420, o is SimpleDelegate[], false);
            Eval(0421, o is GenericDelegate <int>, false);
            Eval(0422, o is GenericDelegate <int>[], false);
            Eval(0423, o is EmptyClass, false);
            Eval(0424, o is EmptyClass[], false);
            Eval(0425, o is NotEmptyClass, false);
            Eval(0426, o is NotEmptyClass[], false);
            Eval(0427, o is EmptyClassGen <int>, false);
            Eval(0428, o is EmptyClassGen <int>[], false);
            Eval(0429, o is NotEmptyClassGen <Guid>, false);
            Eval(0430, o is NotEmptyClassGen <Guid>[], false);
            Eval(0431, o is NotEmptyClassConstrainedGen <object>, false);
            Eval(0432, o is NotEmptyClassConstrainedGen <object>[], false);
            Eval(0433, o is NestedClass, false);
            Eval(0434, o is NestedClass[], false);
            Eval(0435, o is NestedClassGen <Decimal>, false);
            Eval(0436, o is NestedClassGen <Decimal>[], false);
            Eval(0437, o is ImplementOneInterfaceC, false);
            Eval(0438, o is ImplementOneInterfaceC[], false);
            Eval(0439, o is ImplementTwoInterfaceC, false);
            Eval(0440, o is ImplementTwoInterfaceC[], false);
            Eval(0441, o is ImplementOneInterfaceGenC <EmptyStructGen <int> >, false);
            Eval(0442, o is ImplementOneInterfaceGenC <EmptyStructGen <int> >[], false);
            Eval(0443, o is ImplementTwoInterfaceGenC <int>, false);
            Eval(0444, o is ImplementTwoInterfaceGenC <int>[], false);
            Eval(0445, o is ImplementAllInterfaceC <int>, false);
            Eval(0446, o is ImplementAllInterfaceC <int>[], false);
            Eval(0447, o is SealedClass, false);
            Eval(0448, o is SealedClass[], false);
        }
        {
            LongE?v = default(LongE);
            Enum  o = v;
            Eval(0449, o is IntE, false);
            Eval(0450, o is IntE[], false);
            Eval(0451, o is IntE?, false);
            Eval(0452, o is IntE?[], false);
            Eval(0453, o is ByteE, false);
            Eval(0454, o is ByteE[], false);
            Eval(0455, o is ByteE?, false);
            Eval(0456, o is ByteE?[], false);
            Eval(0457, o is LongE, true);
            Eval(0458, o is LongE[], false);
            Eval(0459, o is LongE?, true);
            Eval(0460, o is LongE?[], false);
            Eval(0461, o is object, true);
            Eval(0462, o is object[], false);
            Eval(0463, o is string, false);
            Eval(0464, o is string[], false);
            Eval(0465, o is ValueType, true);
            Eval(0466, o is ValueType[], false);
            Eval(0467, o is Array, false);
            Eval(0468, o is Array[], false);
            Eval(0469, o is Enum, true);
            Eval(0470, o is Enum[], false);
            Eval(0471, o is Delegate, false);
            Eval(0472, o is Delegate[], false);
            Eval(0473, o is MulticastDelegate, false);
            Eval(0474, o is MulticastDelegate[], false);
            Eval(0475, o is IEmpty, false);
            Eval(0476, o is IEmpty[], false);
            Eval(0477, o is INotEmpty, false);
            Eval(0478, o is INotEmpty[], false);
            Eval(0479, o is IEmptyGen <int>, false);
            Eval(0480, o is IEmptyGen <int>[], false);
            Eval(0481, o is INotEmptyGen <int>, false);
            Eval(0482, o is INotEmptyGen <int>[], false);
            Eval(0483, o is SimpleDelegate, false);
            Eval(0484, o is SimpleDelegate[], false);
            Eval(0485, o is GenericDelegate <int>, false);
            Eval(0486, o is GenericDelegate <int>[], false);
            Eval(0487, o is EmptyClass, false);
            Eval(0488, o is EmptyClass[], false);
            Eval(0489, o is NotEmptyClass, false);
            Eval(0490, o is NotEmptyClass[], false);
            Eval(0491, o is EmptyClassGen <int>, false);
            Eval(0492, o is EmptyClassGen <int>[], false);
            Eval(0493, o is NotEmptyClassGen <Guid>, false);
            Eval(0494, o is NotEmptyClassGen <Guid>[], false);
            Eval(0495, o is NotEmptyClassConstrainedGen <object>, false);
            Eval(0496, o is NotEmptyClassConstrainedGen <object>[], false);
            Eval(0497, o is NestedClass, false);
            Eval(0498, o is NestedClass[], false);
            Eval(0499, o is NestedClassGen <Decimal>, false);
            Eval(0500, o is NestedClassGen <Decimal>[], false);
            Eval(0501, o is ImplementOneInterfaceC, false);
            Eval(0502, o is ImplementOneInterfaceC[], false);
            Eval(0503, o is ImplementTwoInterfaceC, false);
            Eval(0504, o is ImplementTwoInterfaceC[], false);
            Eval(0505, o is ImplementOneInterfaceGenC <EmptyStructGen <int> >, false);
            Eval(0506, o is ImplementOneInterfaceGenC <EmptyStructGen <int> >[], false);
            Eval(0507, o is ImplementTwoInterfaceGenC <int>, false);
            Eval(0508, o is ImplementTwoInterfaceGenC <int>[], false);
            Eval(0509, o is ImplementAllInterfaceC <int>, false);
            Eval(0510, o is ImplementAllInterfaceC <int>[], false);
            Eval(0511, o is SealedClass, false);
            Eval(0512, o is SealedClass[], false);
        }
        {
            LongE?v = default(LongE?);
            Enum  o = v;
            Eval(0513, o is IntE, false);
            Eval(0514, o is IntE[], false);
            Eval(0515, o is IntE?, false);
            Eval(0516, o is IntE?[], false);
            Eval(0517, o is ByteE, false);
            Eval(0518, o is ByteE[], false);
            Eval(0519, o is ByteE?, false);
            Eval(0520, o is ByteE?[], false);
            Eval(0521, o is LongE, false);
            Eval(0522, o is LongE[], false);
            Eval(0523, o is LongE?, false);
            Eval(0524, o is LongE?[], false);
            Eval(0525, o is object, false);
            Eval(0526, o is object[], false);
            Eval(0527, o is string, false);
            Eval(0528, o is string[], false);
            Eval(0529, o is ValueType, false);
            Eval(0530, o is ValueType[], false);
            Eval(0531, o is Array, false);
            Eval(0532, o is Array[], false);
            Eval(0533, o is Enum, false);
            Eval(0534, o is Enum[], false);
            Eval(0535, o is Delegate, false);
            Eval(0536, o is Delegate[], false);
            Eval(0537, o is MulticastDelegate, false);
            Eval(0538, o is MulticastDelegate[], false);
            Eval(0539, o is IEmpty, false);
            Eval(0540, o is IEmpty[], false);
            Eval(0541, o is INotEmpty, false);
            Eval(0542, o is INotEmpty[], false);
            Eval(0543, o is IEmptyGen <int>, false);
            Eval(0544, o is IEmptyGen <int>[], false);
            Eval(0545, o is INotEmptyGen <int>, false);
            Eval(0546, o is INotEmptyGen <int>[], false);
            Eval(0547, o is SimpleDelegate, false);
            Eval(0548, o is SimpleDelegate[], false);
            Eval(0549, o is GenericDelegate <int>, false);
            Eval(0550, o is GenericDelegate <int>[], false);
            Eval(0551, o is EmptyClass, false);
            Eval(0552, o is EmptyClass[], false);
            Eval(0553, o is NotEmptyClass, false);
            Eval(0554, o is NotEmptyClass[], false);
            Eval(0555, o is EmptyClassGen <int>, false);
            Eval(0556, o is EmptyClassGen <int>[], false);
            Eval(0557, o is NotEmptyClassGen <Guid>, false);
            Eval(0558, o is NotEmptyClassGen <Guid>[], false);
            Eval(0559, o is NotEmptyClassConstrainedGen <object>, false);
            Eval(0560, o is NotEmptyClassConstrainedGen <object>[], false);
            Eval(0561, o is NestedClass, false);
            Eval(0562, o is NestedClass[], false);
            Eval(0563, o is NestedClassGen <Decimal>, false);
            Eval(0564, o is NestedClassGen <Decimal>[], false);
            Eval(0565, o is ImplementOneInterfaceC, false);
            Eval(0566, o is ImplementOneInterfaceC[], false);
            Eval(0567, o is ImplementTwoInterfaceC, false);
            Eval(0568, o is ImplementTwoInterfaceC[], false);
            Eval(0569, o is ImplementOneInterfaceGenC <EmptyStructGen <int> >, false);
            Eval(0570, o is ImplementOneInterfaceGenC <EmptyStructGen <int> >[], false);
            Eval(0571, o is ImplementTwoInterfaceGenC <int>, false);
            Eval(0572, o is ImplementTwoInterfaceGenC <int>[], false);
            Eval(0573, o is ImplementAllInterfaceC <int>, false);
            Eval(0574, o is ImplementAllInterfaceC <int>[], false);
            Eval(0575, o is SealedClass, false);
            Eval(0576, o is SealedClass[], false);
        }
    }  // end of test case 0003