public void RenderPointsWithDifferentSymbolTypes() { // arrange var map = SymbolTypesSample.CreateMap(); const string fileName = "vector_symbol_symboltype.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 RenderPointsWithDifferentSymbolTypes() { // arrange using var map = SymbolTypesSample.CreateMap(); var viewport = map.Extent !.Multiply(3).ToViewport(200); const string fileName = "vector_symbol_symboltype.png"; // act using var bitmap = new MapRenderer().RenderToBitmapStream(viewport, map.Layers, map.BackColor, 2); // aside File.WriteToGeneratedTestImagesFolder(fileName, bitmap); // assert Assert.IsTrue(CompareBitmaps(File.ReadFromOriginalFolder(fileName), bitmap, 1, 0.99)); }