コード例 #1
0
ファイル: FileInfoTest.cs プロジェクト: mutiadavid/backblaze
        public void FileInfoEquatable()
        {
            var fileinfo1 = new BucketInfo
            {
                { "key1", "value1" },
                { "key2", "value2" }
            };

            var fileinfo2 = new BucketInfo
            {
                { "key1", "value1" },
                { "key2", "value2" }
            };

            Assert.True(fileinfo1.Equals(fileinfo2));
            Assert.Equal(fileinfo1.GetHashCode(), fileinfo2.GetHashCode());
        }
コード例 #2
0
        public void BucketInfoEquatable()
        {
            var bucketinfo1 = new BucketInfo
            {
                { "key1", "value1" },
                { "key2", "value2" }
            };

            var bucketinfo2 = new BucketInfo
            {
                { "key1", "value1" },
                { "key2", "value2" }
            };

            Assert.True(bucketinfo1.Equals(bucketinfo2));
            Assert.Equal(bucketinfo1.GetHashCode(), bucketinfo2.GetHashCode());
        }