Example #1
0
        internal static void ValidateInstanceVariableName(string name)
        {
            if (IVAR.IsMatch(name))
            {
                return;
            }

            throw new NameError($"`{name}' is not allowed as an instance variable name");
        }
Example #2
0
 public RefereeGivesCardTests()
 {
     _var     = Substitute.For <IVAR>();
     _referee = new Referee(_var);
 }
Example #3
0
 public Referee(IVAR var)
 {
     this._var = var;
 }