Esempio n. 1
0
        public void AtStarbucks()
        {
            var screen = new TipScreen(app);
            app.Screenshot("When I run the app");

            screen.EnterSubTotal(5.00M);
            app.Screenshot("And I enter $5.00");

            screen.ToggleStarbucks();
            app.Screenshot("Then Toggle Starbucks");

            Assert.AreEqual("Total: $5.00", screen.TotalText);
            Assert.AreEqual("Tip: $0.00", screen.TipText);

            app.Screenshot("Total is $5.00 with $0.00 tip");
        }
Esempio n. 2
0
        public void AtStarbucks()
        {
            var screen = new TipScreen(app);

            app.Screenshot("When I run the app");

            screen.EnterSubTotal(5.00M);
            app.Screenshot("And I enter $5.00");

            screen.ToggleStarbucks();
            app.Screenshot("Then Toggle Starbucks");

            Assert.AreEqual("Total: $5.00", screen.TotalText);
            Assert.AreEqual("Tip: $0.00", screen.TipText);

            app.Screenshot("Total is $5.00 with $0.00 tip");
        }