public void Ds3ObjectsReturnConsistentHashCodes(Ds3Object ds3Object) { var hashCode1 = ds3Object.GetHashCode(); Assert.AreNotEqual(hashCode1, 0); Assert.AreEqual(hashCode1, ds3Object.GetHashCode()); Assert.AreEqual(hashCode1, new Ds3Object(ds3Object.Name, ds3Object.Size).GetHashCode()); }
public DeleteObjectRequest(Bucket bucket, Ds3Object ds3Object) : this(bucket.Name, ds3Object.Name) { }
public void Ds3ObjectEqualsReturnsFalseWhenComparingNull(Ds3Object ds3Object) { Assert.IsFalse(ds3Object.Equals(null)); }
public void Ds3ObjectEqualsReturnsTrueWhenCopyOfSelf(Ds3Object ds3Object) { Assert.IsTrue(ds3Object.Equals(new Ds3Object(ds3Object.Name, ds3Object.Size))); }
public void Ds3ObjectEqualsReturnsTrueWhenSameInstance(Ds3Object ds3Object) { Assert.IsTrue(ds3Object.Equals(ds3Object)); }
private static void CheckContents(Ds3Object contents, string key, long size) { Assert.AreEqual(key, contents.Name); Assert.AreEqual(size, contents.Size); }