Exemplo n.º 1
0
        public void TestTokenizePrices()
        {
            //setup
            NuWayOrderForm form = new NuWayOrderForm();
            form.Show();
            form.LoginService = new TestBox();
            form.login.isAuthentic = true;
            form.signInToolStripMenuItem_Click(this, null);
            form.bBreakfast_Click(this, null);

            //action
            form.tokenizePrices();

            //check
            Assert.IsTrue(form.prices[0] == 2.99, "Price is not tokenized correctly.");
        }
Exemplo n.º 2
0
        public void TestTokenizePrices()
        {
            //setup
            NuWayOrderForm form = new NuWayOrderForm();
            form.Show();
            form.bBreakfast_Click(this, null);

            //action
            form.tokenizePrices();

            //check
            Assert.IsTrue(form.prices[0] == 2.99, "Price is not tokenized correctly.");
        }