Beispiel #1
0
        public void ScanOneProduct()
        {
            m_RetailStore.OnBarcode("123456");
            m_RetailStore.OnTotal();

            Assert.That(m_Screen.Text, Is.EqualTo("Total: $12.34"));
        }
        public void AllProductsFound()
        {
            m_RetailStore.OnBarcode("1");
            m_RetailStore.OnBarcode("2");
            m_RetailStore.OnBarcode("3");
            m_RetailStore.OnTotal();

            Assert.That(m_Screen.Text, Is.EqualTo("Total: $85.99"));
        }