Ejemplo n.º 1
0
        public void TestInsertWebCartridge()
        {
            //Arrange
            web = new WebCartridge();
            //Act
            bool defaultWebCartridgeState = web.CartridgeInstalled;

            web.InsertWebCartridge();
            bool afterInsertWebCartridge = web.CartridgeInstalled;

            //Assert
            Assert.AreEqual(false, defaultWebCartridgeState);
            Assert.AreEqual(true, afterInsertWebCartridge);
        }
Ejemplo n.º 2
0
        public void TestWebCartridgeAbout()
        {
            //Arrange
            web = new WebCartridge();
            //Act
            string defaultWebCartridgeState = web.About();

            web.InsertWebCartridge();
            string afterWebCartridgeState = web.About();

            //Assert
            Assert.AreEqual("Web cartridge is not inserted", defaultWebCartridgeState);
            Assert.AreEqual("Web Cartridge is inserted", afterWebCartridgeState);
        }