private static void CheckSimpleConversion(ix obj) { if (obj.a != boo.x) throw new Exception("obj.a != boo.x"); if (obj.ax != null) throw new Exception("obj.ax != null"); if (obj.b != 12.5) throw new Exception("obj.b != 12.5"); if (obj.bx != null) throw new Exception("obj.bx != null"); if (obj.c != 5) throw new Exception("obj.c != 5"); if (obj.cx != null) throw new Exception("obj.cx != null"); if (obj.d != true) throw new Exception("obj.d != true"); if (obj.dx != null) throw new Exception("obj.cd != null"); }
private static void CheckConfiguredConversion(ix obj) { if (obj.a != boo.x) throw new Exception("obj.a != boo.x"); if (obj.ax != null) throw new Exception("obj.ax != null"); if (obj.az != boo.y) throw new Exception("obj.ax != boo.y"); if (obj.b != 12.5) throw new Exception("obj.b != 12.5"); if (obj.bx != null) throw new Exception("obj.bx != null"); if (obj.bz != 52.725) throw new Exception("obj.bx != 52,725"); if (obj.c != 5) throw new Exception("obj.c != 5"); if (obj.cx != null) throw new Exception("obj.cx != null"); if (obj.cz != 24) throw new Exception("obj.cx != 24"); if (obj.d != true) throw new Exception("obj.d != true"); if (obj.dx != null) throw new Exception("obj.cd != null"); if (obj.dz != false) throw new Exception("obj.cd != false"); if (obj.e == null || obj.e.a != "bar") throw new Exception("obj.e == null || obj.e.a != \"bar\""); if (obj.ex != null) throw new Exception("obj.ex != null"); if (obj.ez == null || obj.ez.a != "...") throw new Exception("obj.ez == null || obj.ez.a != \"...\""); if (obj.f == null || obj.f.a != "err") throw new Exception("obj.f == null || obj.f.a != \"err\""); }