Beispiel #1
0
        public void Init5()
        {
            ComplexEditor testClass = new ComplexEditor();
            string        input     = "10.3 + ";

            testClass.Number = input;
            string output = "0 + i * 0";

            Assert.AreEqual(output, testClass.ToString());
        }
Beispiel #2
0
        public void Init4()
        {
            ComplexEditor testClass = new ComplexEditor();
            string        input     = "66.66 + i * 66.66";

            testClass.Number = input;
            string output = "66.66 + i * 66.66";

            Assert.AreEqual(output, testClass.ToString());
        }
Beispiel #3
0
        public void AddDeleteTest1()
        {
            ComplexEditor testClass = new ComplexEditor();

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

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