public void TestSaveLevel()
        {
            D1Level level;

            using (var stream = TestUtils.GetResourceStream("test.rdl"))
            {
                level = D1Level.CreateFromStream(stream);
            }

            // Write the level and then re-load it. We don't save the same way as DLE
            // so the output won't match.
            // So we need to compare against something we saved earlier.
            var memoryStream = new MemoryStream();

            level.WriteToStream(memoryStream);
            memoryStream.Seek(0, SeekOrigin.Begin);
            level = D1Level.CreateFromStream(memoryStream);
            memoryStream.Seek(0, SeekOrigin.Begin);

            // Now do the test
            var originalFileContents = memoryStream.ToArray();

            Assert.DoesNotThrow(() => level.WriteToStream(memoryStream));
            var resultingFileContents = memoryStream.ToArray();

            Assert.That(resultingFileContents, Is.EqualTo(originalFileContents));
        }
        public void TestLoadDevilLevel()
        {
            D1Level level;

            using (var stream = TestUtils.GetResourceStream("fusfrens.rdl"))
            {
                level = D1Level.CreateFromStream(stream);
            }
            Assert.NotNull(level);
        }