Example #1
0
        public void RhodeIslandvLeadIndustriesAssociation()
        {
            var test = new PublicNuisance(ExtensionMethods.Tortfeasor)
            {
                IsUnreasonableInterference = lp => lp is LeadIndustriesAssociation,
                IsRightCommonToPublic      = lp => false,
            };
            var testResult = test.IsValid(new RhodeIsland(), new LeadIndustriesAssociation());

            Assert.IsFalse(testResult);
            Console.WriteLine(test.ToString());
        }
Example #2
0
        public void _532MadisonAveGourmetFoodsIncvFinlandiaCenter()
        {
            var test = new PublicNuisance(ExtensionMethods.Tortfeasor)
            {
                IsUnreasonableInterference = lp => lp is FinlandiaCenter,
                IsRightCommonToPublic      = lp => true,
                IsPrivatePeculiarInjury    = lp => false
            };
            var testResult = test.IsValid(new _532MadisonAveGourmetFoodsInc(), new FinlandiaCenter());

            Assert.IsFalse(testResult);
            Console.WriteLine(test.ToString());
        }
Example #3
0
        public void LeovGeneralElectricCo()
        {
            Predicate <IPlaintiff> isMoneyInjury = lp => lp is Leo;

            var test = new PublicNuisance(ExtensionMethods.Tortfeasor)
            {
                IsProscribedByGovernment = lp => true,
                IsPrivatePeculiarInjury  = lp => lp is Leo && isMoneyInjury(lp)
            };

            var testResult = test.IsValid(new Leo(), new GeneralElectricCo());

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