public void TestTextEncoder() { TextEncoder encoder = new TextEncoder(); Assert.AreEqual("0.0", encoder.Convert(0)); Assert.AreEqual("100.0", encoder.Convert(100)); Assert.AreEqual("1.1", encoder.Convert(1.12f)); Assert.AreEqual("-1", encoder.Convert(null)); }
public void TestUpperBound() { TextEncoder encoder = new TextEncoder(); encoder.Convert(100.001f); }
public void TestLowerBound() { TextEncoder encoder = new TextEncoder(); encoder.Convert(-1f); }