public void RenderSymbolWithWorldUnits() { // arrange var map = PointInWorldUnits.CreateMap(); const string fileName = "vector_symbol_unittype.png"; // act var bitmap = new MapRenderer().RenderToBitmapStream(map.Viewport, map.Layers, map.BackColor); // aside File.WriteToGeneratedFolder(fileName, bitmap); // assert Assert.IsTrue(CompareBitmaps(File.ReadFromOriginalFolder(fileName), bitmap, 1, 0.99)); }
public void RenderSymbolWithWorldUnits() { // arrange var map = PointInWorldUnits.CreateMap(); var viewport = new Viewport { Center = new Point(0, 0), Width = 200, Height = 100, Resolution = 0.5 }; const string fileName = "vector_symbol_unittype.png"; // act var bitmap = new MapRenderer().RenderToBitmapStream(viewport, map.Layers, map.BackColor); // aside File.WriteToGeneratedFolder(fileName, bitmap); // assert Assert.IsTrue(CompareBitmaps(File.ReadFromOriginalFolder(fileName), bitmap, 1, 0.99)); }