/// <summary>
        /// Constructor.
        /// </summary>
        public RepeatSpecification
        (
            RepeatKind kind
        )
            : this()
        {
            Sure.Defined(kind, nameof(kind));

            Kind = kind;
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        public RepeatSpecification
        (
            RepeatKind kind,
            int index
        )
            : this()
        {
            Sure.Defined(kind, nameof(kind));
            Sure.NonNegative(index, nameof(index));

            Kind  = kind;
            Index = index;
        }
示例#3
0
 public void Sure_Defined_2()
 {
     Sure.Defined(PetType.Cat, "petType");
     Sure.Defined(PetType.Dog, "petType");
     Sure.Defined(PetType.Fish, "petType");
 }
示例#4
0
 public void Sure_Defined_1()
 {
     Sure.Defined((PetType)10, "petType");
 }