コード例 #1
0
        public void AnthroFileName_UserDefined_Returns_Null()
        {
            var model = new FwChooseAnthroListModel();

            model.CurrentList = FwChooseAnthroListModel.ListChoice.UserDef;
            Assert.That(model.AnthroFileName, Is.Null);
        }
コード例 #2
0
        public void AnthroFileNameReturnsCorrectData(FwChooseAnthroListModel.ListChoice choice, string expectedFileName)
        {
            var model = new FwChooseAnthroListModel();

            model.CurrentList = choice;
            Assert.That(model.AnthroFileName, Is.StringEnding(expectedFileName));
        }
コード例 #3
0
 /// <summary>
 /// Model can be null to allow for designer to work
 /// </summary>
 public FwChooseAnthroListCtrl(FwChooseAnthroListModel model = null)
 {
     InitializeComponent();
     _model = model;
 }