public void EntryStreamReader_PropertyIds_Valid() { using (var entryStreamReader = IntegrationUtil.GetEntryStreamReader()) { Assert.IsTrue(entryStreamReader.PropertyIds.Count() > StreamReaderMockConstants.ENTRY_PROPERTY_IDS_VALID_COUNT); } }
public void EntryStreamReader_PropertyCount_Valid() { using (var entryStreamReader = IntegrationUtil.GetEntryStreamReader()) { Assert.AreEqual(entryStreamReader.PropertyIds.Count(), entryStreamReader.PropertyCount); } }
public void EntryStreamReader_ReadEntry_Valid() { using (var entryStreamReader = IntegrationUtil.GetEntryStreamReader()) { PropId testPropId = entryStreamReader.PropertyIds.ElementAt(StreamReaderMockConstants.SECOND_ELEMENT); NameId testNameId = entryStreamReader.ReadEntry(testPropId); Assert.AreEqual(StreamReaderMockConstants.ENTRY_READ_ENTRY_VALID_GUID_INDEX, testNameId.GuidIndex); } }
public void EntryStreamReader_ReadEntry_Invalid() { using (var entryStreamReader = IntegrationUtil.GetEntryStreamReader()) { PropId testPropId = new PropId { Value = StreamReaderMockConstants.ENTRY_PROP_ID_VALUE }; NameId testNameId = entryStreamReader.ReadEntry(testPropId); Assert.AreEqual(StreamReaderMockConstants.ENTRY_INVALID_GUID_INDEX, testNameId.GuidIndex); } }