10
I have a method that prints private variable of the class.
public class Test
{
private int number;
public Test(int number)
{
this.number = number;
}
public void PrintValue()
{
Console.WriteLine("Number: " + number);
}
}
How can I create an unit test to make sure it prints value I expected on console?