public void Equals_GivenNullObject_ReturnsFalse() { PatientContext patientContext = TestUtilities.GetPatientContext(); Assert.IsFalse(patientContext.Equals(null)); Assert.IsNotNull(patientContext); }
public void Equals_GivenDifferentObject_ReturnsFalse() { var patientContext = new PatientContext(_guYear, _guNumber); var patientContext1 = new PatientContext(_guYear, _guNumber + 1); Assert.IsFalse(patientContext.Equals(patientContext1)); }
public void Equals_GivenStringObject_ReturnsFalse() { PatientContext patientContext = TestUtilities.GetPatientContext(); Assert.IsFalse(patientContext.Equals("TestValue")); }
public void Equals_GivenSameObject_ReturnsTrue() { var patientContext = new PatientContext(_guYear, _guNumber); Assert.IsTrue(patientContext.Equals(patientContext)); }
public void Equals_GivenDifferentObject_ReturnsFalse() { var patientContext = new PatientContext(_guYear, _guNumber); var patientContext1 = new PatientContext(_guYear, _guNumber + 1); Assert.IsFalse(patientContext.Equals(patientContext1)); }
public void Equals_GivenSameObject_ReturnsTrue() { var patientContext = new PatientContext(_guYear, _guNumber); Assert.IsTrue(patientContext.Equals(patientContext)); }