public void EqualsNull() { var t_Location = new MemoryLocation(new MemoryAddress(0), m_Bank); t_Location.Equals(null) .Should() .BeFalse(); }
public void EqualsIncorrectType() { var t_Location = new MemoryLocation(new MemoryAddress(0), m_Bank); t_Location .Equals(new MemoryAddress(0)) .Should() .BeFalse(); }
public void EqualsSameInstance() { var t_Location = new MemoryLocation(new MemoryAddress(0), m_Bank); t_Location .Equals(t_Location) .Should() .BeTrue(); }
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(); }