Пример #1
0
        public void CheckNullAreEqual()
        {
            var fic = new DirectoryInfoComparer();

            Assert.IsTrue(
                fic.Equals(null, null));
        }
Пример #2
0
        public void CheckNonNullAreEqual()
        {
            var fic = new DirectoryInfoComparer();

            Assert.IsFalse(
                fic.Equals(null, new DirectoryInfo("c:\\dir")));
        }
Пример #3
0
        public void CheckAreEqual(string lhs, string rhs)
        {
            var fic = new DirectoryInfoComparer();

            Assert.IsTrue(
                fic.Equals(new DirectoryInfo(lhs), new DirectoryInfo(rhs)));
        }