public void testToFloat() { StringTheory theory = new StringTheory("4367.002"); float num = theory.ToFloat(); float num2 = 4367.002f; Assert.True(num2 == num, "strings don't match"); theory.Renew(""); Assert.True(0f == theory.ToFloat(), "value should be zero"); }