I need to create some tests for a bunch of variables that are initialized via the editor, So in the script they are always null and can't be set publicly.
Usually using the tag is a good way to encapsulate the code but with tests how do I check such a variable? Example:
public class thing
{
[SerializeField]
private string line;
//constructor(s), methods, etc..
public void setLine(string text){line = text; }
}
How do I check the value of the string after it is set inside a test?
(preferably without creating a getter method)