コード例 #1
0
 static void Verify(Weaver weaver)
 {
     weaver.Execute();
     ObjectApprover.VerifyWithJson(
         new
     {
         weaver.BoolMember,
         weaver.StringMember
     });
 }
コード例 #2
0
    public override void Execute()
    {
        var targetFramework = ModuleDefinition.Assembly.CustomAttributes.SingleOrDefault(a => a.AttributeType.FullName == typeof(TargetFrameworkAttribute).FullName);
        var frameworkName   = new FrameworkName((string)targetFramework.ConstructorArguments.Single().Value);

        var weaver = new Weaver(ModuleDefinition, this, frameworkName);
        var result = weaver.Execute();

        WriteInfo(result.ToString());
    }
コード例 #3
0
        static void Main(string[] args)
        {
            Weaver weaver = new Weaver(null);

            weaver.Execute(args[0]);
        }