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); }
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); }