Ejemplo n.º 1
0
        public void CompareFileEqualTest()
        {
            var file = new File {
                Name = "FolderName", Id = "FolderID", Size = 1
            };
            var file2 = new File {
                Name = "FolderName", Id = "Folder", Size = 1
            };
            var compare = new GFileComparer();

            compare.Equals(file, file2);
            Assert.True(compare.Equals(file, file2));
        }
Ejemplo n.º 2
0
        public void CompareFileNotEqualNameTest()
        {
            var file = new File {
                Name = "FolderName1", Id = "FolderID", Size = 1
            };
            var file2 = new File {
                Name = "FolderName2", Id = "Folder", Size = 1
            };
            var compare = new GFileComparer();

            compare.Equals(file, file2);
            Assert.False(compare.Equals(file, file2));
        }