public void Test_EqualsNullSupported() { IPath pathA = null; IPath pathB = null; Assert.IsTrue(pathA.EqualsNullSupported(pathB)); var realPath = @"C:".ToAbsoluteDirectoryPath(); pathA = realPath; pathB = null; Assert.IsFalse(pathA.EqualsNullSupported(pathB)); pathA = null; pathB = realPath; Assert.IsFalse(pathA.EqualsNullSupported(pathB)); pathA = realPath.ToString().ToAbsoluteDirectoryPath(); pathB = realPath; Assert.IsTrue(pathA.EqualsNullSupported(pathB)); pathA = @".".ToRelativeDirectoryPath(); pathB = realPath; Assert.IsFalse(pathA.EqualsNullSupported(pathB)); }