Esempio n. 1
0
    public static PesterConfiguration ShallowClone(PesterConfiguration configuration)
    {
        var cfg = Default;

        cfg.Run          = RunConfiguration.ShallowClone(configuration.Run);
        cfg.Filter       = FilterConfiguration.ShallowClone(configuration.Filter);
        cfg.CodeCoverage = CodeCoverageConfiguration.ShallowClone(configuration.CodeCoverage);
        cfg.TestResult   = TestResultConfiguration.ShallowClone(configuration.TestResult);
        cfg.Should       = ShouldConfiguration.ShallowClone(configuration.Should);
        cfg.Debug        = DebugConfiguration.ShallowClone(configuration.Debug);
        cfg.Output       = OutputConfiguration.ShallowClone(configuration.Output);
        return(cfg);
    }