Return-Path: Delivered-To: apmail-incubator-chemistry-commits-archive@minotaur.apache.org Received: (qmail 3463 invoked from network); 15 Feb 2011 21:03:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Feb 2011 21:03:07 -0000 Received: (qmail 79589 invoked by uid 500); 15 Feb 2011 21:03:07 -0000 Delivered-To: apmail-incubator-chemistry-commits-archive@incubator.apache.org Received: (qmail 79171 invoked by uid 500); 15 Feb 2011 21:03:06 -0000 Mailing-List: contact chemistry-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chemistry-dev@incubator.apache.org Delivered-To: mailing list chemistry-commits@incubator.apache.org Received: (qmail 78859 invoked by uid 99); 15 Feb 2011 21:03:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Feb 2011 21:03:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Feb 2011 21:03:05 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 52BF723888D2; Tue, 15 Feb 2011 21:02:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1071057 - /incubator/chemistry/dotcmis/trunk/DotCMISUnitTest/SmokeTest.cs Date: Tue, 15 Feb 2011 21:02:45 -0000 To: chemistry-commits@incubator.apache.org From: fmui@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110215210245.52BF723888D2@eris.apache.org> Author: fmui Date: Tue Feb 15 21:02:44 2011 New Revision: 1071057 URL: http://svn.apache.org/viewvc?rev=1071057&view=rev Log: - fixed unit test Modified: incubator/chemistry/dotcmis/trunk/DotCMISUnitTest/SmokeTest.cs Modified: incubator/chemistry/dotcmis/trunk/DotCMISUnitTest/SmokeTest.cs URL: http://svn.apache.org/viewvc/incubator/chemistry/dotcmis/trunk/DotCMISUnitTest/SmokeTest.cs?rev=1071057&r1=1071056&r2=1071057&view=diff ============================================================================== --- incubator/chemistry/dotcmis/trunk/DotCMISUnitTest/SmokeTest.cs (original) +++ incubator/chemistry/dotcmis/trunk/DotCMISUnitTest/SmokeTest.cs Tue Feb 15 21:02:44 2011 @@ -58,7 +58,7 @@ namespace DotCMISUnitTest Assert.AreEqual("cmis:document", documentType.Id); Assert.AreEqual(BaseTypeId.CmisDocument, documentType.BaseTypeId); Assert.True(documentType.IsBaseType); - Assert.Null(documentType.ParentTypeId); + Assert.IsNullOrEmpty(documentType.ParentTypeId); Assert.NotNull(documentType.PropertyDefintions); Assert.True(documentType.PropertyDefintions.Count >= 9); @@ -68,7 +68,7 @@ namespace DotCMISUnitTest Assert.AreEqual("cmis:folder", folderType.Id); Assert.AreEqual(BaseTypeId.CmisFolder, folderType.BaseTypeId); Assert.True(folderType.IsBaseType); - Assert.Null(folderType.ParentTypeId); + Assert.IsNullOrEmpty(folderType.ParentTypeId); Assert.NotNull(folderType.PropertyDefintions); Assert.True(folderType.PropertyDefintions.Count >= 9); @@ -85,7 +85,7 @@ namespace DotCMISUnitTest Assert.NotNull(type); Assert.NotNull(type.Id); Assert.True(type.IsBaseType); - Assert.Null(type.ParentTypeId); + Assert.IsNullOrEmpty(type.ParentTypeId); Assert.NotNull(type.PropertyDefintions); Session.Clear(); @@ -115,7 +115,7 @@ namespace DotCMISUnitTest Assert.NotNull(type); Assert.NotNull(type.Id); Assert.True(type.IsBaseType); - Assert.Null(type.ParentTypeId); + Assert.IsNullOrEmpty(type.ParentTypeId); Assert.NotNull(type.PropertyDefintions); Session.Clear();