I have test code in C# Visual Studio with Selenium. I have there few test class and one Utility class.
using ...
namespace Test
{
[TestClass]
public void Test1()
{
//CODE
}
[TestClass]
public void Test2()
{
//CODE
}
[TestClass]
public void Test3()
{
//CODE
}
[TestClass]
public void Utility()
{
IWebDriver driver;
int a,b,c;
string name, password;
srting[] info = {"a","b","c"};
//other variables
}
}
My question is simply (there was few similar questions but they won't work for me like decaration in Dynamically assign method / Method as variable). Is there possible to create method from my variables in class Utility to use them in other classes as variable without coppying them all the time? Or there is other thing i can do for that?
Thx for help
Janer