Exemple #1
0
        public void DrawDebugInformation_ShouldClear_DrawCircle_DebugInformationToDraw()
        {
            // Arrange
            var circle = new Circle(new Vector2(1, 2), 3);
            var color  = Color.FromArgb(1, 2, 3, 4);

            _debugRenderer.DrawCircle(circle, color);
            _debugRenderer.DrawDebugInformation(_renderer2D, Matrix3x3.Identity);

            _renderer2D.ClearReceivedCalls();

            // Act
            _debugRenderer.DrawDebugInformation(_renderer2D, Matrix3x3.Identity);

            // Assert
            _renderer2D.DidNotReceiveWithAnyArgs().RenderEllipse(Arg.Any <Ellipse>(), Arg.Any <Color>(), Arg.Any <bool>(), Arg.Any <Matrix3x3>());
        }