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