-1
Friends, I have 2 projects in the same Software, 1 of these codedUI and another with winform containing a simple progress bar. It was carried out the import in the test project of the reference and instantiated the same one where would like to call. The problem is that when calling the method that increments the bar value it is not displayed. That is, the communication happens but the bar is not displayed. I would like contributions for the bar call to be displayed at the time the tests are being debugged. Progress bar:
namespace ProgressBar Form1
{
public partial class ProgressBar : Form
{
public ProgressBar()
{
InitializeComponent();
}
public void progressBar1_Value()
{
progressBar1.Value += 10;
}
public void show()
{
progressBar1.Show();
}
}
}
Call the bar on the test:
using projeto = ProgressBar;
projeto.ProgressBar Barra = new projeto.ProgressBar();
for (int i = 0; i < 9; i++)
{
Barra.progressBar1_Value();
Barra.show();
}