예제 #1
0
        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));
        }
예제 #2
0
        public void TestUpperBound()
        {
            TextEncoder encoder = new TextEncoder();

            encoder.Convert(100.001f);
        }
예제 #3
0
        public void TestLowerBound()
        {
            TextEncoder encoder = new TextEncoder();

            encoder.Convert(-1f);
        }