public void Equals_Self() { var file = new FileObject(@"C:\file", null); var result = file.Equals(file); Assert.AreEqual(true, result); }
public void Equals_Null() { var file = new FileObject(@"C:\file", null); var result = file.Equals(null); Assert.AreEqual(false, result); }
public void Equals_Directory() { var file = new FileObject(@"C:\path", null); var directory = new DirectoryObject(@"C:\path", null); var result = file.Equals(directory); Assert.AreEqual(false, result); }
public void Equals_Drive() { var file = new FileObject(@"C:\file", null); var drive = new DriveObject("C:", null); var result = file.Equals(drive); Assert.AreEqual(false, result); }
public void Equals_AnotherDirectory() { var file1 = new FileObject(@"C:\file1", null); var file2 = new FileObject(@"C:\file2", null); var result = file1.Equals(file2); Assert.AreEqual(false, result); }
public void Equals_SameFile() { var file1 = new FileObject(@"C:\file", null); var file2 = new FileObject(@"C:\file", null); var result = file1.Equals(file2); Assert.AreEqual(true, result); }