

#region Using

using System.Diagnostics.Contracts;
using PPWCode.Vernacular.Exceptions.II;
using PPWCode.Vernacular.Semantics.II;

#endregion

namespace PPWCode.Vernacular.Semantics.Test.II
{
    public class RousseauObject : AbstractRousseauObject
    {
        [ContractInvariantMethod]
        private void TypeInvariants()
        {
        }

        public RousseauObject()
        {
        }

        public bool MockWild { get; set; }

        public override CompoundSemanticException WildExceptions()
        {
            CompoundSemanticException cpe = base.WildExceptions();
            if (MockWild)
            {
                cpe.AddElement(new SemanticException("TEST"));
            }
            return cpe;
        }
    }
}