Skip to content

using System.Drawing; was not added as one of the auto generated using statements #30

@AndreaWilliamsIteris

Description

@AndreaWilliamsIteris

Installed product versions

  • Visual Studio: [example 2017 Professional]
  • This extension: [example 2.7.0]

Description

When I created boiler plate unit test, the using statement did not get added and I had to add in myself.
using System.Drawing;

Steps to recreate

  1. Add this to code
    var newLabel = new DevExpress.XtraEditors.LabelControl
    {
    Text = name,
    Width = 150,
    Font = font,
    AutoSizeMode = LabelAutoSizeMode.Vertical,
    AutoSize = true,
    Dock = DockStyle.Left,
    };

  2. Create a Unit test

  3. Font has red squiggle because using statement is missing.

Current behavior

using statement is missing because system.drawing is not referenced

Expected behavior

using System.Drawing; is included in the unit test file and Font doesn't have a missing reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions