def testcase_01(self):
     a = AndGate()
     a.Input0 = False
     a.Input1 = False
     a.execute()
     self.assertFalse(a.Output, "Class AndGate Testcase 1 failed.")                     # so
 def testcase_04(self):
     a = AndGate()
     a.Input0 = True
     a.Input1 = True
     a.execute()
     self.assertEqual(True, a.Output, "Class AndGate Testcase 4 failed.")
Beispiel #3
0
 def testcase_04(self):
     a = AndGate()
     a.Input0 = True
     a.Input1 = True
     a.execute()
     self.assertTrue(a.Output, "Class AndGate: TestCase04 failed")
 def testcase_03(self):
     a = AndGate()
     a.Input0 = True
     a.Input1 = False
     a.execute()
     self.assertEqual(False, a.Output, "Class AndGate Testcase 3 failed.")
Beispiel #5
0
 def testcase_03(self):
     a = AndGate()
     a.Input0 = False
     a.Input1 = True
     a.execute()
     self.assertFalse(a.Output, "Class AndGate: TestCase03 failed")