• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DemoBytom / DemoEngine / 24608431965

18 Apr 2026 03:59PM UTC coverage: 30.6% (+0.1%) from 30.483%
24608431965

push

coveralls.net

DemoBytom
Fix unit test hanging indefinitely.

Added explicit timeout.
Fixed the test to setup correct `BlockingDoEvents` method instad `DoEvents`

1291 of 4219 relevant lines covered (30.6%)

0.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Demo.Engine.Core/Interfaces/Platform/IRenderingControl.cs
1
// Copyright © Michał Dembski and contributors.
2
// Distributed under MIT license. See LICENSE file in the root for more information.
3

4
using System.Drawing;
5
using Demo.Engine.Core.Interfaces.Rendering;
6
using Demo.Engine.Core.ValueObjects;
7

8
namespace Demo.Engine.Core.Interfaces.Platform;
9

10
public readonly ref struct RenderingControlSizeEventArgs
11
{
12
    private readonly ref readonly Width _width;
13
    private readonly ref readonly Height _height;
14

15
    public readonly ref readonly Width Width => ref _width;
×
16
    public readonly ref readonly Height Height => ref _height;
×
17
    public RenderingControlSizeEventArgs(
18
        ref readonly Width drawWidth,
19
        ref readonly Height drawHeight)
20
    {
21
        _width = ref drawWidth;
×
22
        _height = ref drawHeight;
×
23
    }
×
24
}
25

26
public interface IRenderingControl : IDisposable
27
{
28
    /// <summary>
29
    /// User resized event
30
    /// </summary>
31
    event EventHandler<RenderingControlSizeEventArgs>? UserResized;
32
    event EventHandler<EventArgs>? RenderingFormClosed;
33

34
    /// <summary>
35
    /// Displays the control to the user.
36
    /// </summary>
37
    void Show();
38

39
    IntPtr Handle { get; }
40

41
    bool IsDisposed { get; }
42

43
    bool IsFullscreen { get; }
44

45
    /// <summary>
46
    /// Width of the drawable area
47
    /// </summary>
48
    Width DrawWidth { get; }
49

50
    /// <summary>
51
    /// Height of the drawable area
52
    /// </summary>
53
    Height DrawHeight { get; }
54

55
    RectangleF DrawingArea { get; }
56

57
    public void SetFullscreen(bool isFullscreen);
58

59
    Task<T> InvokeAsync<T>(
60
        Func<CancellationToken, ValueTask<T>> callback,
61
        CancellationToken cancellationToken = default);
62

63
    ValueTask<RenderingSurfaceId> CreateSurface(
64
        IRenderingEngine renderingEngine,
65
        CancellationToken cancellationToken = default);
66
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc