コード例 #1
0
        private static StatLightConfiguration CreateStatLightConfiguration(SilverlightTask silverlightTask, DebugLogger logger, MethodTask[] testMethods)
        {
            var configurationFactory = new StatLightConfigurationFactory(logger);

            return silverlightTask.HasXapPath() ?
                CreateStatLightConfigurationForXap(configurationFactory, testMethods, silverlightTask.GetXapPath()) :
                CreateStatLightConfigurationForDll(configurationFactory, testMethods, silverlightTask.GetDllPath());
        }
コード例 #2
0
        private static InputOptions CreateInputOptions(SilverlightTask silverlightTask, MethodTask[] testMethods)
        {
            var inputOptions = new InputOptions()
                .SetMethodsToTest(testMethods.Select(m => m.GetFullMethodName()))
                ;

            if (silverlightTask.HasXapPath())
                inputOptions.SetXapPaths(new[] {silverlightTask.GetXapPath()});
            else
                inputOptions.SetDllPaths(new[] {silverlightTask.GetDllPath()});
            return inputOptions;
        }