Exemplo n.º 1
0
        public void AddDeleteTest3()
        {
            TPNumberEditor testClass = new TPNumberEditor(0.0f, 16, 5);

            for (int i = 0; i < 100; ++i)
            {
                testClass.RemoveSymbol();
            }
            testClass.AddSeparator();
            testClass.AddSeparator();
            testClass.AddSeparator();
            testClass.AddNumber(15);
            string result = "0.F";

            Assert.AreEqual(result, testClass.ToString());
        }
Exemplo n.º 2
0
        public void AddDeleteTest1()
        {
            TPNumberEditor testClass = new TPNumberEditor();

            testClass.AddNumber(0);
            testClass.AddNumber(1);
            testClass.AddNumber(3);
            testClass.AddSeparator();
            testClass.ToogleSign();
            string result = "-13.";

            Assert.AreEqual(result, testClass.ToString());
        }