Exemplo n.º 1
0
        public void EntryChangeSignTest()
        {
            CStack cs = new CStack();

            cs.entry = "5";
            cs.EntryChangeSign();
            Assert.AreEqual(cs.entry, "-5");
            cs.EntryChangeSign();
            Assert.AreEqual(cs.entry, "+5");

            cs.entry = "5";
            cs.Enter();
            cs.EntryChangeSign();
            Assert.AreEqual(cs.entry, "-");
        }
 private void NumCHS(object sender, RoutedEventArgs e)
 {
     cs.EntryChangeSign();
     UpdateNumberField();
 }