Ejemplo n.º 1
0
        public async Task SetInitialSize()
        {
            DefaultDeviceProperties = new PlotDeviceProperties(600, 600, 96);

            var code   = @"
plot(0:10)
";
            var inputs = Batch(code);
            var actualPlotFilePaths = await GraphicsTestAsync(inputs);

            var plotFilePath = actualPlotFilePaths.Should().ContainSingle().Which;

            var bmp = (Bitmap)Image.FromFile(plotFilePath);

            bmp.Width.Should().Be(600);
            bmp.Height.Should().Be(600);
        }
Ejemplo n.º 2
0
        public async Task SetInitialSize() {
            DefaultDeviceProperties = new PlotDeviceProperties(600, 600, 96);

            var code = @"
plot(0:10)
";
            var inputs = Batch(code);
            var actualPlotFilePaths = await GraphicsTestAsync(inputs);
            var plotFilePath = actualPlotFilePaths.Should().ContainSingle().Which;

            var bmp = (Bitmap)Image.FromFile(plotFilePath);
            bmp.Width.Should().Be(600);
            bmp.Height.Should().Be(600);
        }