public void Equals_OtherObject_ReturnsFalse() { var a = new FreshDirectory("foo"); var b = new object(); Assert.IsFalse(a.Equals(b)); }
public void Equals_TwoUnequal_ReturnsFalse() { var a = new FreshDirectory("foo"); var b = new FreshDirectory("bar"); Assert.IsFalse(a.Equals(b)); Assert.IsFalse(b.Equals(a)); }
public void Equals_TwoEqual_ReturnsTrue() { var a = new FreshDirectory("foo"); var b = new FreshDirectory("foo"); Assert.IsTrue(a.Equals(b)); Assert.IsTrue(b.Equals(a)); }
public void Equals_Null_ReturnsFalse() { var a = new FreshDirectory("foo"); Assert.IsFalse(a.Equals(null)); }