示例#1
0
        public void EqualsNull()
        {
            var t_Location = new MemoryLocation(new MemoryAddress(0), m_Bank);

            t_Location.Equals(null)
            .Should()
            .BeFalse();
        }
示例#2
0
        public void EqualsIncorrectType()
        {
            var t_Location = new MemoryLocation(new MemoryAddress(0), m_Bank);

            t_Location
            .Equals(new MemoryAddress(0))
            .Should()
            .BeFalse();
        }
示例#3
0
        public void EqualsSameInstance()
        {
            var t_Location = new MemoryLocation(new MemoryAddress(0), m_Bank);

            t_Location
            .Equals(t_Location)
            .Should()
            .BeTrue();
        }
示例#4
0
        public void EqualsObject()
        {
            var    t_Location        = new MemoryLocation(new MemoryAddress(0), m_Bank);
            object t_AnotherLocation = new MemoryLocation(new MemoryAddress(1), m_Bank);

            t_Location
            .Equals(t_AnotherLocation)
            .Should()
            .BeFalse();
        }