public void TestReadNonExistantTagFromCompound() { String filename = @"..\..\..\LibNBT Tests\Data\test.nbt"; TagCompound newTag = new TagCompound(); AbstractTag aTag = newTag.GetAbstractTag("nope"); Assert.IsNull(aTag); TagCompound fileTag = AbstractTag.ReadFromFile(filename) as TagCompound; aTag = fileTag.GetAbstractTag("Entities"); Assert.IsNull(aTag); }