Example #1
0
        public void EnumerateSubrecords_Typical()
        {
            var ret = UtilityTranslation.EnumerateSubrecords(GetTypical(), GameConstants.Oblivion).ToArray();

            Assert.Equal(2, ret.Length);
            Assert.Equal(new RecordType("EDID"), ret[0].Key);
            Assert.Equal(FirstTypicalLocation, ret[0].Value);
            Assert.Equal(new RecordType("FNAM"), ret[1].Key);
            Assert.Equal(SecondTypicalLocation, ret[1].Value);
        }
Example #2
0
 public void EnumerateSubrecords_Empty()
 {
     byte[] b = new byte[0];
     Assert.Empty(UtilityTranslation.EnumerateSubrecords(new ReadOnlyMemorySlice <byte>(b), GameConstants.Oblivion));
 }