public void IsArithmeticVMCommand_InputAddCommand_ReturnsTrue() { string vmCommand = "add"; bool isArithmeticVMCommand = SyntaxValidator.IsArithmeticVMCommand(vmCommand); Assert.AreEqual(true, isArithmeticVMCommand); }
public void IsArithmeticVMCommand_InputCommandWithSpace_ReturnsFalse() { string vmCommand = " gt"; bool isArithmeticVMCommand = SyntaxValidator.IsArithmeticVMCommand(vmCommand); Assert.AreEqual(false, isArithmeticVMCommand); }
public void IsArithmeticVMCommand_InputRandomSymbolsAndNumbers_ReturnsFalse() { string vmCommand = "%^$&432*^%231324"; bool isArithmeticVMCommand = SyntaxValidator.IsArithmeticVMCommand(vmCommand); Assert.AreEqual(false, isArithmeticVMCommand); }
public void IsArithmeticVMCommand_InputInvalidAdditionCommand_ReturnsFalse() { string vmCommand = "addition"; bool isArithmeticVMCommand = SyntaxValidator.IsArithmeticVMCommand(vmCommand); Assert.AreEqual(false, isArithmeticVMCommand); }