示例#1
0
        public void TestNewTrialIsValid02()
        {
            var testSubject = new NewTrial
            {
                Court                      = new StateCourt("TN"),
                GetSubjectPerson           = lps => lps.Plaintiff(),
                GetAssertion               = lp => new ExampleCauseForAction(),
                IsNeededToPreventInjustice = lc => lc is ExampleCauseForAction
            };
            var testResult =
                testSubject.IsValid(new ExamplePlaintiff(), new ExampleDefendant(), new ExampleCourtJudge());

            Console.WriteLine(testSubject.ToString());
            Assert.IsTrue(testResult);
        }
示例#2
0
        public void TestNewTrialIsValid00()
        {
            var testSubject = new NewTrial
            {
                Court                      = new StateCourt("TN"),
                GetSubjectPerson           = lps => lps.Plaintiff(),
                GetAssertion               = lp => new ExampleCauseForAction(),
                IsCommittedProceduralError = lp => lp is ExampleCourtJudge
            };
            var testResult =
                testSubject.IsValid(new ExamplePlaintiff(), new ExampleDefendant(), new ExampleCourtJudge());

            Console.WriteLine(testSubject.ToString());
            Assert.IsTrue(testResult);
        }