Exemplo n.º 1
0
        public void TwoItemsAsArrayToParse()
        {
            ServiceRecord    record = new ServiceRecordParser().Parse(Data_LanguageBaseList.RecordTwoItemsAsBytes);
            LanguageBaseItem item   = record.GetPrimaryLanguageBaseItem();

            //
            Assert.AreEqual(Data_LanguageBaseList.LangStringEn, item.NaturalLanguage, "NaturalLanguage");
            Assert.AreEqual(Data_LanguageBaseList.EncUtf8, item.EncodingId, "EncodingId");
            Assert.AreEqual((ServiceAttributeId)0x0100, item.AttributeIdBase, "AttributeIdBase");
        }