public static void Test(StringType value, object expected) { Assert.AreEqual(expected.GetType(), typeof(string)); Assert.AreEqual((string)expected, value.GetValue()); }
public void SetQuestionValue(StringType value) { TextBox.Text = value.GetValue(); }