18 using NUnit.Framework;
20 namespace Deveel.Data.Sql.Objects {
22 [Category(
"SQL Objects")]
28 Assert.IsFalse(value.IsNull);
29 Assert.IsTrue(value.CanBeInt32);
30 Assert.IsTrue(value.CanBeInt64);
31 Assert.AreEqual(0, value.Scale);
32 Assert.AreEqual(5, value.Precision);
34 Assert.AreEqual(1, value.Sign);
40 Assert.IsFalse(value.IsNull);
41 Assert.IsFalse(value.CanBeInt32);
42 Assert.IsTrue(value.CanBeInt64);
43 Assert.AreEqual(0, value.Scale);
44 Assert.AreEqual(10, value.Precision);
46 Assert.AreEqual(1, value.Sign);
52 Assert.IsFalse(value.IsNull);
53 Assert.IsFalse(value.CanBeInt32);
54 Assert.IsFalse(value.CanBeInt64);
55 Assert.AreEqual(28, value.Scale);
56 Assert.AreEqual(34, value.Precision);
58 Assert.AreEqual(1, value.Sign);
64 Assert.DoesNotThrow(() => value =
SqlNumber.
Parse(
"98356278.911288837773848500069994933229238e45789"));
65 Assert.IsFalse(value.IsNull);
66 Assert.IsFalse(value.CanBeInt32);
67 Assert.IsFalse(value.CanBeInt64);
68 Assert.Greater(value.Precision, 40);
84 Assert.IsTrue(value1 > value2);
89 var value1 =
SqlNumber.
Parse(
"98356278.911288837773848500069994933229238e45789");
90 var value2 =
SqlNumber.
Parse(
"348299.01991828833333333333488888388829911182227373738488847112349928");
92 Assert.IsTrue(value1 > value2);
NumericState
Lists all the possible special states of a number.
static void BigNumber_Greater_True()
void Convert_ToBoolean_Success()
void Create_FromInteger()
static readonly SqlNumber One
Deveel.Data.Sql.Objects.SqlBoolean SqlBoolean
void Integer_Greater_True()
static SqlNumber Parse(string s)