예제 #1
0
        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());
        }
예제 #2
0
 public DeleteObjectRequest(Bucket bucket, Ds3Object ds3Object) : this(bucket.Name, ds3Object.Name)
 {
 }
예제 #3
0
 public void Ds3ObjectEqualsReturnsFalseWhenComparingNull(Ds3Object ds3Object)
 {
     Assert.IsFalse(ds3Object.Equals(null));
 }
예제 #4
0
 public void Ds3ObjectEqualsReturnsTrueWhenCopyOfSelf(Ds3Object ds3Object)
 {
     Assert.IsTrue(ds3Object.Equals(new Ds3Object(ds3Object.Name, ds3Object.Size)));
 }
예제 #5
0
 public void Ds3ObjectEqualsReturnsTrueWhenSameInstance(Ds3Object ds3Object)
 {
     Assert.IsTrue(ds3Object.Equals(ds3Object));
 }
예제 #6
0
 private static void CheckContents(Ds3Object contents, string key, long size)
 {
     Assert.AreEqual(key, contents.Name);
     Assert.AreEqual(size, contents.Size);
 }