StatLight.Core.Configuration.InputOptions.SetDllPaths C# (CSharp) Method

SetDllPaths() public method

public SetDllPaths ( IEnumerable dllPaths ) : InputOptions
dllPaths IEnumerable
return InputOptions
        public InputOptions SetDllPaths(IEnumerable<string> dllPaths)
        {
            if (dllPaths == null) throw new ArgumentNullException("dllPaths");
            AssertFileExists(dllPaths);
            DllPaths = dllPaths;
            return this;
        }

Usage Example

        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;
        }