public void GetSet_SetOverriddenRegisterInBase_NotEqual(int regNum) { IRegisterSet baseSet = new BaseRegisterSet(); IRegisterSet overrideSet = new FastIrqRegisterSet(baseSet); baseSet.GetRegister(regNum) = 0xFFFFFFFF; Assert.NotEqual(0xFFFFFFFF, overrideSet.GetRegister(regNum)); }
public void GetSet_Register_Equal(int regNum) { IRegisterSet baseSet = new BaseRegisterSet(); IRegisterSet overrideSet = new FastIrqRegisterSet(baseSet); baseSet.GetRegister(regNum) = 0xFFFFFFFF; Assert.Equal(0xFFFFFFFF, overrideSet.GetRegister(regNum)); }
public void GetSet_SetDifferentValuesForBaseAndOverride_NotEqual(int regNum) { IRegisterSet baseSet = new BaseRegisterSet(); IRegisterSet overrideSet = new FastIrqRegisterSet(baseSet); baseSet.GetRegister(regNum) = 0xFFFFFFFF; overrideSet.GetRegister(regNum) = 0xFFFFFFFE; Assert.NotEqual(0xFFFFFFFF, overrideSet.GetRegister(regNum)); }