public void AccountName_Not_Null() { using (var recipient = IntegrationUtil.GetRecipient()) { Assert.IsNotNull(recipient.AccountName); } }
public void Pst_Name_Compare() { using (var pst = IntegrationUtil.GetPst()) { Assert.AreEqual(pst.Name, PstMockConstants.PST_NAME); } }
public void NameIdMap_Not_Null() { using (var pst = IntegrationUtil.GetPst()) { Assert.IsNotNull(pst.NameIDMap, pst.NameIDMap.ToString()); } }
public void Folder_PropertyExists_Invalid() { using (var folder = IntegrationUtil.GetFolder()) { Assert.IsFalse(folder.PropertyExists(FolderMockConstants.FOLDER_INVALID_PROP_ID)); } }
public void GetPropertyType_Invalid_PropId() { using (var pst = IntegrationUtil.GetPst()) { var prop = pst.GetPropertyType(PstMockConstants.PST_INVALID_PROP_ID); } }
public void Folder_Node_Valid() { using (var folder = IntegrationUtil.GetFolder()) { Assert.AreEqual(FolderMockConstants.FOLDER_VALID_NODE_ID, folder.Node.Value); } }
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); } }
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); } }
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); } }
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); } }
public void Folder_OpenPropertyStream_Invalid() { using (var folder = IntegrationUtil.GetFolder()) { folder.OpenPropertyStream(FolderMockConstants.FOLDER_INVALID_PROP_ID); } }
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)); } }
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); }
public void Pst_Name_Not_Null() { using (var pst = IntegrationUtil.GetPst()) { Assert.IsTrue(!String.IsNullOrEmpty(pst.Name), PstMockConstants.PST_NAME_NOT_NULL_FAIL); } }
public void Folder_AssociatedMessageCount_Valid() { using (var folder = IntegrationUtil.GetFolder()) { Assert.AreEqual(FolderMockConstants.FOLDER_ASSOCIATED_MESSAGE_COUNT, folder.AssociatedMessageCount); } }
public void DatabaseAccessor_Not_Null() { using (var pst = IntegrationUtil.GetPst()) { Assert.IsNotNull(pst.DatabaseAccessor); } }
public void Folder_AssociatedMessages_Valid() { using (var folder = IntegrationUtil.GetFolder()) { Assert.IsNull(folder.AssociatedMessages); } }
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)); } }