public void TestTextBoxIsNotEmptyInspector() { var textBoxIsNotEmptyInspector = new TextBoxIsNotEmptyInspector("text", 0); var target = new PrivateObject(textBoxIsNotEmptyInspector); Assert.AreEqual(( string )target.GetFieldOrProperty(MEMBER_VARIABLE_NAME_TEXT), "text"); Assert.AreEqual(( int )target.GetFieldOrProperty(MEMBER_VARIABLE_NAME_MAX_TEXT_LENGTH), 0); }
public void Initialize() { _textBoxIsNotEmptyInspector = new TextBoxIsNotEmptyInspector(TestDefinition.DUMP_STRING, TestDefinition.DUMP_INTEGER); _target = new PrivateObject(_textBoxIsNotEmptyInspector); }