public void CompareToSameLocation() { var t_Location = new MemoryLocation(new MemoryAddress(0), m_Bank); t_Location .CompareTo(t_Location) .Should() .Be(0); }
public void CompareToOutsideBank() { var t_OtherBank = new MemoryLocation(new MemoryAddress(0), null); var t_DefaultBank = new MemoryLocation(new MemoryAddress(10), m_Bank); t_OtherBank .CompareTo(t_DefaultBank) .Should() .Be(-1); }
public void CompareToSameBankHigherAddress() { var t_Lower = new MemoryLocation(new MemoryAddress(0), m_Bank); var t_Higher = new MemoryLocation(new MemoryAddress(10), m_Bank); t_Lower .CompareTo(t_Higher) .Should() .Be(-1); }