Beispiel #1
0
        public void ExampleInfancyDefense()
        {
            var testCrime = new Felony
            {
                ActusReus = new ActusReus
                {
                    IsAction    = lp => lp is MarioEg,
                    IsVoluntary = lp => lp is MarioEg,
                },
                MensRea = new GeneralIntent
                {
                    IsKnowledgeOfWrongdoing = lp => lp is MarioEg,
                }
            };

            var testResult = testCrime.IsValid(new MarioEg());

            Assert.IsTrue(testResult);

            var testSubject = new Infancy();

            testResult = testSubject.IsValid(new MarioEg());
            Console.WriteLine(testSubject.ToString());
            Assert.IsTrue(testResult);
        }
Beispiel #2
0
    public Dictionary <string, Action> SetupInfancy()
    {
        Debug.Log("Set up infancy phase");
        Infancy infancy = new Infancy(you);
        Dictionary <string, Action> options = infancy.GetPossibleActions();

        return(options);
    }