public void AccountName_Not_Null()
 {
     using (var recipient = IntegrationUtil.GetRecipient())
     {
         Assert.IsNotNull(recipient.AccountName);
     }
 }
Beispiel #2
0
 public void Pst_Name_Compare()
 {
     using (var pst = IntegrationUtil.GetPst())
     {
         Assert.AreEqual(pst.Name, PstMockConstants.PST_NAME);
     }
 }
Beispiel #3
0
 public void NameIdMap_Not_Null()
 {
     using (var pst = IntegrationUtil.GetPst())
     {
         Assert.IsNotNull(pst.NameIDMap, pst.NameIDMap.ToString());
     }
 }
Beispiel #4
0
 public void Folder_PropertyExists_Invalid()
 {
     using (var folder = IntegrationUtil.GetFolder())
     {
         Assert.IsFalse(folder.PropertyExists(FolderMockConstants.FOLDER_INVALID_PROP_ID));
     }
 }
Beispiel #5
0
 public void GetPropertyType_Invalid_PropId()
 {
     using (var pst = IntegrationUtil.GetPst())
     {
         var prop = pst.GetPropertyType(PstMockConstants.PST_INVALID_PROP_ID);
     }
 }
Beispiel #6
0
 public void Folder_Node_Valid()
 {
     using (var folder = IntegrationUtil.GetFolder())
     {
         Assert.AreEqual(FolderMockConstants.FOLDER_VALID_NODE_ID, folder.Node.Value);
     }
 }
Beispiel #7
0
 public void Folder_SubFolderCount_Valid()
 {
     using (var folder = IntegrationUtil.GetDifferentFolder())
     {
         Assert.AreEqual(folder.SubFolders.Count(), folder.SubFolderCount);
     }
 }
 public void Name_Test()
 {
     using (var recipient = IntegrationUtil.GetRecipient())
     {
         Assert.AreEqual(RecipientMockConstants.RECIPIENT_NAME, recipient.Name);
     }
 }
 public void NodeID_Test()
 {
     using (var recipient = IntegrationUtil.GetRecipient())
     {
         Assert.AreEqual(RecipientMockConstants.RECIPIENT_VALID_NODE, (UInt32)recipient.Node);
     }
 }
 public void HasAccountName_Test()
 {
     using (var recipient = IntegrationUtil.GetRecipient())
     {
         Assert.AreEqual(true, recipient.HasAccountName);
     }
 }
 public void HasEmailAddress_Test()
 {
     using (var recipient = IntegrationUtil.GetRecipient())
     {
         Assert.AreEqual(true, recipient.HasEmailAddress);
     }
 }
 public void AddressType_Test()
 {
     using (var recipient = IntegrationUtil.GetRecipient())
     {
         Assert.AreEqual(RecipientMockConstants.RECIPIENT_ADDRESS_TYPE, recipient.AddressType);
     }
 }
 public void EmailAddress_Test()
 {
     using (var recipient = IntegrationUtil.GetRecipient())
     {
         Assert.AreEqual(RecipientMockConstants.RECIPIENT_EMAIL_ADDRESS, recipient.EmailAddress);
     }
 }
 public void GetPropertyType_Invalid_Test()
 {
     using (var recipient = IntegrationUtil.GetRecipient())
     {
         recipient.GetPropertyType(RecipientMockConstants.RECIPIENT_INVALID_PROP_ID);
     }
 }
Beispiel #15
0
 public void Folder_MessageCount_Valid()
 {
     using (var folder = IntegrationUtil.GetFolder())
     {
         Assert.AreEqual(folder.Messages.Count(), folder.MessageCount);
     }
 }
 public void OpenPropertyStream_Invalid_Test()
 {
     using (var recipient = IntegrationUtil.GetRecipient())
     {
         recipient.OpenPropertyStream(RecipientMockConstants.RECIPIENT_INVALID_PROP_ID);
     }
 }
Beispiel #17
0
 public void Folder_Name_Valid()
 {
     using (var folder = IntegrationUtil.GetFolder())
     {
         Assert.AreEqual(FolderMockConstants.FOLDER_VALID_SUBFOLDER, folder.Name);
     }
 }
 public void EntryStreamReader_PropertyCount_Valid()
 {
     using (var entryStreamReader = IntegrationUtil.GetEntryStreamReader())
     {
         Assert.AreEqual(entryStreamReader.PropertyIds.Count(), entryStreamReader.PropertyCount);
     }
 }
Beispiel #19
0
 public void Folder_GetPropertyType_Invalid()
 {
     using (var folder = IntegrationUtil.GetFolder())
     {
         folder.GetPropertyType(FolderMockConstants.FOLDER_INVALID_PROP_ID);
     }
 }
 public void EntryStreamReader_PropertyIds_Valid()
 {
     using (var entryStreamReader = IntegrationUtil.GetEntryStreamReader())
     {
         Assert.IsTrue(entryStreamReader.PropertyIds.Count() > StreamReaderMockConstants.ENTRY_PROPERTY_IDS_VALID_COUNT);
     }
 }
Beispiel #21
0
 public void Folder_OpenPropertyStream_Invalid()
 {
     using (var folder = IntegrationUtil.GetFolder())
     {
         folder.OpenPropertyStream(FolderMockConstants.FOLDER_INVALID_PROP_ID);
     }
 }
Beispiel #22
0
        public void NamedPropertyExists_Null_test()
        {
            var            namedIdMap = IntegrationUtil.GetNameIdMap();
            INamedProperty property   = null;

            Assert.AreEqual(false, namedIdMap.NamedPropertyExists(property));
        }
 public void GuidStreamReader_ReadGuid_Invalid()
 {
     using (var guidStreamReader = IntegrationUtil.GetGuidStreamReader())
     {
         Assert.AreEqual(new Guid(), guidStreamReader.ReadGuid(StreamReaderMockConstants.GUID_INVALID_INDEX));
     }
 }
Beispiel #24
0
        public void Lookup_Invalid_test()
        {
            var  namedIdMap = IntegrationUtil.GetNameIdMap();
            Guid guid       = new Guid(MockConstants.NAMED_IDMAP_VALID_GUID);

            namedIdMap.Lookup(guid, MockConstants.NAMED_IDMAP_INVALID_PROPID);
        }
Beispiel #25
0
 public void Pst_Name_Not_Null()
 {
     using (var pst = IntegrationUtil.GetPst())
     {
         Assert.IsTrue(!String.IsNullOrEmpty(pst.Name), PstMockConstants.PST_NAME_NOT_NULL_FAIL);
     }
 }
Beispiel #26
0
 public void Folder_AssociatedMessageCount_Valid()
 {
     using (var folder = IntegrationUtil.GetFolder())
     {
         Assert.AreEqual(FolderMockConstants.FOLDER_ASSOCIATED_MESSAGE_COUNT, folder.AssociatedMessageCount);
     }
 }
Beispiel #27
0
 public void DatabaseAccessor_Not_Null()
 {
     using (var pst = IntegrationUtil.GetPst())
     {
         Assert.IsNotNull(pst.DatabaseAccessor);
     }
 }
Beispiel #28
0
 public void Folder_AssociatedMessages_Valid()
 {
     using (var folder = IntegrationUtil.GetFolder())
     {
         Assert.IsNull(folder.AssociatedMessages);
     }
 }
Beispiel #29
0
 public void Node_Not_Null()
 {
     using (var pst = IntegrationUtil.GetPst())
     {
         Assert.IsNotNull(pst.Node);
     }
 }
 public void PropertySize_Valid_Test()
 {
     using (var recipient = IntegrationUtil.GetRecipient())
     {
         Assert.AreEqual(RecipientMockConstants.RECIPIENT_PROPERTY_SIZE, recipient.PropertySize(RecipientMockConstants.RECIPIENT_VALID_PROP_ID));
     }
 }