chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1071057 - /incubator/chemistry/dotcmis/trunk/DotCMISUnitTest/SmokeTest.cs
Date Tue, 15 Feb 2011 21:02:45 GMT
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();



Mime
View raw message