public void GetFloat_ReturnsCorrectFloat() { Assert.Equal(12345, AttributeHelpers.GetFloat("12345")); Assert.Equal(123.45f, AttributeHelpers.GetFloat("123.45")); Assert.Equal(-123.45f, AttributeHelpers.GetFloat("-123.45")); Assert.Equal(0.45f, AttributeHelpers.GetFloat("0.45")); Assert.Equal(0.45f, AttributeHelpers.GetFloat(".45")); Assert.Equal(-0.45f, AttributeHelpers.GetFloat("-0.45")); Assert.Equal(-0.45f, AttributeHelpers.GetFloat("-.45")); Assert.Null(AttributeHelpers.GetFloat("")); Assert.Null(AttributeHelpers.GetFloat(null)); Assert.Null(AttributeHelpers.GetFloat("SOME_RANDOM_STRING")); }