コード例 #1
0
        public void TruthTable_SimplifyTruthTable_HashCodeBeEqualAsExpected(string prefixInput, string simplifiedTruthTable)
        {
            //Arrange
            var binaryTree = ParsingModule.Parse(prefixInput);

            //Act
            var truthTable = new TruthTable(binaryTree);

            //Assert
            var actualSimplified   = DeleteCharacters(truthTable.SimplifiedToString(), new[] { "\n", " ", });
            var expectedSimplified = DeleteCharacters(simplifiedTruthTable, new[] { "\n", " ", });

            Assert.Equal(actualSimplified, expectedSimplified);
        }