﻿using System;
using System.IO;
using System.Linq;

namespace NBi.Service.RunnerConfig
{
    class NUnitRunnerConfigBuilder : AbstractRunnerConfigBuilder
    {
        public NUnitRunnerConfigBuilder()
            : base("NBi.config", "NUnit.nunit")
        {

        }

        public NUnitRunnerConfigBuilder(IFilePersister filePersister)
            : this()
        {
            base.filePersister = filePersister;
        }

        protected override string CalculateRunnerProjectFullPath()
        {
            return base.CalculateRunnerProjectFullPath() + ".nunit";
        }

        protected override string CalculateConfigFullPath()
        {
            return BasePath + TestSuite + Path.GetFileNameWithoutExtension(this.Filename) + ".config";
        }

    }
}

﻿using System;
using System.IO;
using System.Linq;

namespace NBi.Service.RunnerConfig
{
    class NUnitRunnerConfigBuilder : AbstractRunnerConfigBuilder
    {
        public NUnitRunnerConfigBuilder()
            : base("NBi.config", "NUnit.nunit")
        {

        }

        public NUnitRunnerConfigBuilder(IFilePersister filePersister)
            : this()
        {
            base.filePersister = filePersister;
        }

        protected override string CalculateRunnerProjectFullPath()
        {
            return base.CalculateRunnerProjectFullPath() + ".nunit";
        }

        protected override string CalculateConfigFullPath()
        {
            return BasePath + Path.GetFileNameWithoutExtension(this.Filename) + ".config";
        }

    }
}

Fix the bug that the config for NUnit was not in the correct folder
Fix the bug that the config for NUnit was not in the correct folder
