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); }
public void EnumerateSubrecords_Empty() { byte[] b = new byte[0]; Assert.Empty(UtilityTranslation.EnumerateSubrecords(new ReadOnlyMemorySlice <byte>(b), GameConstants.Oblivion)); }