コード例 #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();
        }