public void SqlTypes() { SqlTypeTypes.SourceObject so = new SqlTypeTypes.SourceObject(); SqlTypeTypes.Object1 o = (SqlTypeTypes.Object1)Map.ObjectToObject(so, typeof(SqlTypeTypes.Object1)); Console.WriteLine(o.s1); Assert.AreEqual("123", o.s1.Value); Console.WriteLine(o.s2); Assert.AreEqual("1234", o.s2); Console.WriteLine(o.i1); Assert.IsTrue(o.i1.Value == 123); Console.WriteLine(o.i2); Assert.IsTrue(o.i2 == 1234); Console.WriteLine("{0} - {1}", so.d2, o.d2); Assert.AreEqual(o.d2, so.d2.Value); //Console.WriteLine("{0} - {1}", s.d1, d.d1); Assert.IsTrue(d.d1.Value == s.d1); }
public void SqlTypes() { SqlTypeTypes.SourceObject so = new SqlTypeTypes.SourceObject(); SqlTypeTypes.Object1 o = (SqlTypeTypes.Object1)Map.ObjectToObject(so, typeof(SqlTypeTypes.Object1)); Console.WriteLine(o.s1); Assert.AreEqual("123", o.s1.Value); Console.WriteLine(o.s2); Assert.AreEqual("1234", o.s2); Console.WriteLine(o.i1); Assert.IsTrue(o.i1.Value == 123); Console.WriteLine(o.i2); Assert.IsTrue(o.i2 == 1234); Console.WriteLine("{0} - {1}", so.d2, o.d2); Assert.AreEqual(o.d2, so.d2.Value); //Console.WriteLine("{0} - {1}", s.d1, d.d1); Assert.IsTrue(d.d1.Value == s.d1); }