public void AccountName_Not_Null()
 {
     using (var recipient = IntegrationUtil.GetRecipient())
     {
         Assert.IsNotNull(recipient.AccountName);
     }
 }
Exemplo n.º 2
0
 public void Pst_Name_Compare()
 {
     using (var pst = IntegrationUtil.GetPst())
     {
         Assert.AreEqual(pst.Name, PstMockConstants.PST_NAME);
     }
 }
Exemplo n.º 3
0
 public void NameIdMap_Not_Null()
 {
     using (var pst = IntegrationUtil.GetPst())
     {
         Assert.IsNotNull(pst.NameIDMap, pst.NameIDMap.ToString());
     }
 }
Exemplo n.º 4
0
 public void Folder_PropertyExists_Invalid()
 {
     using (var folder = IntegrationUtil.GetFolder())
     {
         Assert.IsFalse(folder.PropertyExists(FolderMockConstants.FOLDER_INVALID_PROP_ID));
     }
 }
Exemplo n.º 5
0
 public void GetPropertyType_Invalid_PropId()
 {
     using (var pst = IntegrationUtil.GetPst())
     {
         var prop = pst.GetPropertyType(PstMockConstants.PST_INVALID_PROP_ID);
     }
 }
Exemplo n.º 6
0
 public void Folder_Node_Valid()
 {
     using (var folder = IntegrationUtil.GetFolder())
     {
         Assert.AreEqual(FolderMockConstants.FOLDER_VALID_NODE_ID, folder.Node.Value);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 21
0
 public void Folder_OpenPropertyStream_Invalid()
 {
     using (var folder = IntegrationUtil.GetFolder())
     {
         folder.OpenPropertyStream(FolderMockConstants.FOLDER_INVALID_PROP_ID);
     }
 }
Exemplo n.º 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));
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
     }
 }
Exemplo n.º 26
0
 public void Folder_AssociatedMessageCount_Valid()
 {
     using (var folder = IntegrationUtil.GetFolder())
     {
         Assert.AreEqual(FolderMockConstants.FOLDER_ASSOCIATED_MESSAGE_COUNT, folder.AssociatedMessageCount);
     }
 }
Exemplo n.º 27
0
 public void DatabaseAccessor_Not_Null()
 {
     using (var pst = IntegrationUtil.GetPst())
     {
         Assert.IsNotNull(pst.DatabaseAccessor);
     }
 }
Exemplo n.º 28
0
 public void Folder_AssociatedMessages_Valid()
 {
     using (var folder = IntegrationUtil.GetFolder())
     {
         Assert.IsNull(folder.AssociatedMessages);
     }
 }
Exemplo n.º 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));
     }
 }