public void printTable_IsItValid() { //Arrange var processObject = new ProcessLogicClass(">(a,b)"); var truthTableObject = new TruthTable(processObject); //Act var tableString = truthTableObject.printTable(); //Assert Assert.AreEqual(tableString, "0 0 1\n0 1 1\n1 0 0\n1 1 1\n"); }
public void printTable_is_not_null() { //Arrange var processObject = new ProcessLogicClass(">(a,b)"); var truthTableObject = new TruthTable(processObject); //Act var tableString = truthTableObject.printTable(); //Assert Assert.IsNotNull(tableString); }
public void returnHexHashCode_isItValid() { //Arrange var processObject = new ProcessLogicClass(">(a,b)"); var truthTableObject = new TruthTable(processObject); //Act var tableString = truthTableObject.printTable(); var hashCode = truthTableObject.returnHexHashCode(); //Assert Assert.AreEqual(hashCode, "B"); }
public void returnHexHashCode_is_not_null() { //Arrange var processObject = new ProcessLogicClass(">(a,b)"); var truthTableObject = new TruthTable(processObject); //Act var tableString = truthTableObject.printTable(); var hashCode = truthTableObject.returnHexHashCode(); //Assert Assert.IsNotNull(hashCode); }