public void Should_not_equal_any_other_type() { // GIVEN var handler = new StubDialogHandler(); // WHEN var result = handler.Equals(new object()); // THEN Assert.That(result, Is.False); }
public void Should_not_equal_different_instance_of_same_type() { // GIVEN var handler = new StubDialogHandler(); // WHEN var result = handler.Equals(new StubDialogHandler()); // THEN Assert.That(result, Is.False); }
public void Should_not_equal_null() { // GIVEN var handler = new StubDialogHandler(); // WHEN var result = handler.Equals(null); // THEN Assert.That(result, Is.False); }
public void Should_equal_same_instance() { // GIVEN var handler = new StubDialogHandler(); // WHEN var result = handler.Equals(handler); // THEN Assert.That(result, Is.True); }