Esempio n. 1
0
        public unsafe void TestToFloat()
        {
            var d = 566.15f;
            var q = new QStringRef("566.15");
            var w = q.ToFloat();

            Assert.AreEqual(d, w);
        }
Esempio n. 2
0
        public void TestToFloat()
        {
            var   d = 566.15f;
            float w;

            using (var q = new QStringRef("566.15"))
            {
                w = q.ToFloat();
            }

            Assert.AreEqual(d, w);
        }
Esempio n. 3
0
        public unsafe void TestToFloat()
        {
            var d = 566.15f;
            var q = new QStringRef("566.15");
            var w = q.ToFloat();

            Assert.AreEqual(d, w);
        }