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

            _debugRenderer.DrawCircle(circle, color);

            var cameraTransformationMatrix = new Matrix3x3(1, 2, 3, 4, 5, 6, 7, 8, 9);

            // Act
            _debugRenderer.DrawDebugInformation(_renderer2D, cameraTransformationMatrix);

            // Assert
            _renderer2D.Received(1).RenderEllipse(circle.ToEllipse(), color, false, cameraTransformationMatrix);
        }