Esempio n. 1
0
        public void AppendInvariantDouble(double value, string strExpected)
        {
            StringBuilder sb = new StringBuilder();

            StringBuilderUtility.AppendInvariant(sb, value);
            Assert.AreEqual(strExpected, sb.ToString());
        }
        public void AppendInvariantInt64(long value, string strExpected)
        {
            var sb = new StringBuilder();

            StringBuilderUtility.AppendInvariant(sb, value);
            Assert.AreEqual(strExpected, sb.ToString());
        }
Esempio n. 3
0
        public void AppendInvariantDecimalMinMax()
        {
            StringBuilder sb = new StringBuilder();

            StringBuilderUtility.AppendInvariant(sb, Decimal.MaxValue);
            Assert.AreEqual("79228162514264337593543950335", sb.ToString());

            sb = new StringBuilder();
            StringBuilderUtility.AppendInvariant(sb, Decimal.MinValue);
            Assert.AreEqual("-79228162514264337593543950335", sb.ToString());
        }