예제 #1
0
        public void Ce_ForSingleArgCtorIgnoringTypeSet()
        {
            var ce = Ce.For <Samples.SingleArgCtor>()
                     .Ignoring(TypeSet.With(
                                   typeof(System.Runtime.TargetedPatchingOptOutAttribute),
                                   typeof(System.Security.SecuritySafeCriticalAttribute),
                                   typeof(System.Runtime.ConstrainedExecution.ReliabilityContractAttribute),
                                   typeof(System.Runtime.CompilerServices.CompilerGeneratedAttribute),
                                   typeof(object),
                                   typeof(int),
                                   typeof(string),
                                   typeof(bool),
                                   typeof(Type)
                                   ));

            ce.Value.Should().Be(1);
            ce.References.Should().Have.SameValuesAs(
                new[] { typeof(Samples.Fee) }
                );
        }