Example #1
0
        public void ShouldParseSpearMapInfo()
        {
            var mockProvider = new Mock <IResourceProvider>();

            mockProvider
            .Setup(_ => _.Lookup("mapinfo/wolfcommon.txt"))
            .Returns(TestFile.MapInfo.wolfcommon);

            using var stream = TestFile.MapInfo.spear;

            var lookup = MapDeclarationReader.Read(stream, mockProvider.Object);
        }
Example #2
0
 public void ShouldParseWolfCommonMapInfo()
 {
     using var stream = TestFile.MapInfo.wolfcommon;
     var lookup = MapDeclarationReader.Read(stream, Mock.Of <IResourceProvider>());
 }