static void Verify(Weaver weaver) { weaver.Execute(); ObjectApprover.VerifyWithJson( new { weaver.BoolMember, weaver.StringMember }); }
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()); }
static void Main(string[] args) { Weaver weaver = new Weaver(null); weaver.Execute(args[0]); }