public void AnthroFileName_UserDefined_Returns_Null() { var model = new FwChooseAnthroListModel(); model.CurrentList = FwChooseAnthroListModel.ListChoice.UserDef; Assert.That(model.AnthroFileName, Is.Null); }
public void AnthroFileNameReturnsCorrectData(FwChooseAnthroListModel.ListChoice choice, string expectedFileName) { var model = new FwChooseAnthroListModel(); model.CurrentList = choice; Assert.That(model.AnthroFileName, Is.StringEnding(expectedFileName)); }
/// <summary> /// Model can be null to allow for designer to work /// </summary> public FwChooseAnthroListCtrl(FwChooseAnthroListModel model = null) { InitializeComponent(); _model = model; }