예제 #1
0
        public void Manage_no_status_no_sync_key()
        {
            var command = new CustomFolderSyncCommandResult();

            command.Parse(@"
                <FolderSync xmlns:folderhierarchy='FolderHierarchy'>
                </FolderSync>"
                          );

            Assert.AreEqual(null, command.Status);
            Assert.AreEqual(null, command.SyncKey);
        }
예제 #2
0
        public void Manage_status_and_sync_key()
        {
            var command = new CustomFolderSyncCommandResult();

            command.Parse(@"
                <FolderSync xmlns:folderhierarchy='FolderHierarchy'>
                    <Status xmlns:folderhierarchy='FolderHierarchy'>110</Status>
                    <SyncKey xmlns:folderhierarchy='FolderHierarchy'>99</SyncKey>
                </FolderSync>"
                          );

            Assert.AreEqual("110", command.Status);
            Assert.AreEqual("99", command.SyncKey);
        }