コード例 #1
0
        public void StaffNameRule02PassesValidStaffNames()
        {
            var model = new SupplementaryDataModel
            {
                StaffName = @"Aa0.,;:~!”@#$&’()/+-<=>[]{}^£€"
            };

            var rule = new StaffNameRule02();

            Assert.True(rule.Execute(model));
        }
コード例 #2
0
        public void StaffNameRule02CatchesRegexViolations()
        {
            var model = new SupplementaryDataModel
            {
                StaffName = "|~"
            };

            var rule = new StaffNameRule02();

            Assert.False(rule.Execute(model));
        }