KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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?
Tags (comma-separated)
Save Edits
Cancel