public static void Run() { Test_nullabletypes.Eval(s.Value.Foo() == 0x0001); Test_nullabletypes.Eval(((Struct)((object)s)).Foo() == 0x0001); Test_nullabletypes.Eval(((Struct)((ValueType)s)).Foo() == 0x0001); Test_nullabletypes.Eval(imps.Value.Foo() == 0x0010); Test_nullabletypes.Eval(((ImplStruct)(object)imps).Foo() == 0x0010); Test_nullabletypes.Eval(((ImplStruct)(ValueType)imps).Foo() == 0x0010); Test_nullabletypes.Eval(((BaseInter)imps).Foo() == 0x0010); Test_nullabletypes.Eval(ogis.Value.Foo() == 0x0100); Test_nullabletypes.Eval(((OpenGenImplStruct <int>)(object) ogis).Foo() == 0x0100); Test_nullabletypes.Eval(((OpenGenImplStruct <int>)(ValueType) ogis).Foo() == 0x0100); Test_nullabletypes.Eval(((GenInter <int>)ogis).Foo() == 0x0100); Test_nullabletypes.Eval(cgis.Value.Foo() == 0x1000); Test_nullabletypes.Eval(((CloseGenImplStruct)(object)cgis).Foo() == 0x1000); Test_nullabletypes.Eval(((CloseGenImplStruct)(ValueType)cgis).Foo() == 0x1000); Test_nullabletypes.Eval(((GenInter <int>)cgis).Foo() == 0x1000); Test_nullabletypes.Eval(cgiis.Value.Foo() == 0x1001); Test_nullabletypes.Eval(((CloseGenImplGenAndImplStruct <int>)(object) cgiis).Foo() == 0x1001); Test_nullabletypes.Eval(((CloseGenImplGenAndImplStruct <int>)(ValueType) cgiis).Foo() == 0x1001); Test_nullabletypes.Eval(((GenInter <int>)cgiis).Foo() == 0x1001); Test_nullabletypes.Eval(((BaseInter)cgiis).Foo() == 0x0110); }
public static void Run() { Test_nullabletypes.Eval(i.GetHashCode(), 0); Test_nullabletypes.Eval(s.GetHashCode(), 0); Test_nullabletypes.Eval(imps.GetHashCode(), 0); Test_nullabletypes.Eval(genfoo.GetHashCode(), 0); Test_nullabletypes.Eval(genint.GetHashCode(), 0); }
public static void Run() { Test_nullabletypes.Eval(i.GetHashCode(), 1.GetHashCode()); Test_nullabletypes.Eval(s.GetHashCode(), default(Struct).GetHashCode()); Test_nullabletypes.Eval(imps.GetHashCode(), default(ImplStruct).GetHashCode()); Test_nullabletypes.Eval(genfoo.GetHashCode(), default(OpenGenImplStruct <Foo>).GetHashCode()); Test_nullabletypes.Eval(genint.GetHashCode(), default(CloseGenImplStruct).GetHashCode()); }
public static void Run() { Test_nullabletypes.Eval(i.Value, default(int)); Test_nullabletypes.Eval(s.Value, default(Struct)); Test_nullabletypes.Eval(imps.Value, default(ImplStruct)); Test_nullabletypes.Eval(genfoo.Value, default(OpenGenImplStruct <Foo>)); Test_nullabletypes.Eval(genint.Value, default(CloseGenImplStruct)); }
public static void Run() { Test_nullabletypes.Eval(i.ToString(), ""); Test_nullabletypes.Eval(s.ToString(), ""); Test_nullabletypes.Eval(imps.ToString(), ""); Test_nullabletypes.Eval(genfoo.ToString(), ""); Test_nullabletypes.Eval(genint.ToString(), ""); }
public static void Run() { Test_nullabletypes.Eval(i.ToString(), 1.ToString()); Test_nullabletypes.Eval(s.ToString(), default(Struct).ToString()); Test_nullabletypes.Eval(imps.ToString(), default(ImplStruct).ToString()); Test_nullabletypes.Eval(genfoo.ToString(), default(OpenGenImplStruct <Foo>).ToString()); Test_nullabletypes.Eval(genint.ToString(), default(CloseGenImplStruct).ToString()); }
public static void Run() { Test_nullabletypes.Eval(i.HasValue); Test_nullabletypes.Eval(s.HasValue); Test_nullabletypes.Eval(imps.HasValue); Test_nullabletypes.Eval(genfoo.HasValue); Test_nullabletypes.Eval(genint.HasValue); }