コード例 #1
0
        public void Test5()
        {
            MethodBuilder template = MethodBuilder.Random();
            var           result   = template
                                     .Access(Natasha.Reverser.Model.AccessTypes.Public)
                                     .DefinedName("Name")
                                     .NoUseDefinedType()
                                     .Script;

            Assert.Equal($"public Name(){{}}", result);
            Assert.Equal(typeof(Action), template.DelegateType);
        }
コード例 #2
0
        public void Test5()
        {
            MethodBuilder template = MethodBuilder.RandomDomain();
            var           result   = template
                                     .Access(AccessFlags.Public)
                                     .Name("Name")
                                     .NoUseType()
                                     .Script;

            Assert.Equal($"public Name(){{}}", result);
            Assert.Equal(typeof(Action), template.DelegateType);
        }