public static void Main()
var inputs = new TestInput[] {
new TestInput(true , false),
new TestInput(true , true),
new TestInput(false , true),
new TestInput(false , false)
Console.WriteLine("|| A | B | A & B | A & !B | !A & B | !A & !B ||");
Console.WriteLine("||-------|-------|-------|--------|--------|---------||");
foreach (var test in inputs)
$"| {test.isNull && test.isSend,5} " +
$"| {test.isNull && !test.isSend,6} " +
$"| {!test.isNull && test.isSend,6} " +
$"| {!test.isNull && !test.isSend,6} ||"
Console.WriteLine("\n\n\n|| A | B | A ^ B | A ^ !B | !A ^ B | !A ^ !B ||");
Console.WriteLine("||-------|-------|-------|--------|--------|---------||");
foreach (var test in inputs)
$"| {test.isNull || test.isSend,5} " +
$"| {test.isNull || !test.isSend,6} " +
$"| {!test.isNull || test.isSend,6} " +
$"| {!test.isNull || !test.isSend,6} ||"
internal bool isNull, isSend;
public TestInput(bool isNull, bool isSend)