Example #1
0
        public void ShouldBePartial_negative()
        {
            var call = ActionCall.For <PartialController>(x => x.Go(null));

            PartialOnlyConvention.ShouldBePartial(call).ShouldBeFalse();
        }
Example #2
0
        public void ShouldBePartial_positive()
        {
            var call = ActionCall.For <PartialController>(x => x.GoPartial(null));

            PartialOnlyConvention.ShouldBePartial(call).ShouldBeTrue();
        }