Ejemplo n.º 1
0
        public void CompareToSameLocation()
        {
            var t_Location = new MemoryLocation(new MemoryAddress(0), m_Bank);

            t_Location
            .CompareTo(t_Location)
            .Should()
            .Be(0);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
0
        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);
        }