public void IsMemoryAccessVMCommand_InputPushTempCommandWithoutValue_ReturnsFalse() { string vmCommand = "push temp"; bool isMemoryAccessVMCommand = SyntaxValidator.IsMemoryAccessVMCommand(vmCommand); Assert.AreEqual(false, isMemoryAccessVMCommand); }
public void IsMemoryAccessVMCommand_InputInvalidPushCommand_ReturnsFalse() { string vmCommand = "push stack 245"; bool isMemoryAccessVMCommand = SyntaxValidator.IsMemoryAccessVMCommand(vmCommand); Assert.AreEqual(false, isMemoryAccessVMCommand); }
public void IsMemoryAccessVMCommand_InputValidPopStaticCommand_ReturnsTrue() { string vmCommand = "pop static 200"; bool isMemoryAccessVMCommand = SyntaxValidator.IsMemoryAccessVMCommand(vmCommand); Assert.AreEqual(true, isMemoryAccessVMCommand); }
public void IsMemoryAccessVMCommand_InputInvalidPopConstantCommand_ReturnsFalse() { string vmCommand = "pop constant 200"; bool isMemoryAccessVMCommand = SyntaxValidator.IsMemoryAccessVMCommand(vmCommand); Assert.AreEqual(false, isMemoryAccessVMCommand); }
public void IsMemoryAccessVMCommand_InputValidPushConstantCommand_ReturnsTrue() { string vmCommand = "push constant 909"; bool isMemoryAccessVMCommand = SyntaxValidator.IsMemoryAccessVMCommand(vmCommand); Assert.AreEqual(true, isMemoryAccessVMCommand); }