diff --git a/Objectivity.Test.Automation.Tests.NUnit/DataDriven/DataDrivenHelper.cs b/Objectivity.Test.Automation.Tests.NUnit/DataDriven/DataDrivenHelper.cs index a98ca466b..a1061d02a 100644 --- a/Objectivity.Test.Automation.Tests.NUnit/DataDriven/DataDrivenHelper.cs +++ b/Objectivity.Test.Automation.Tests.NUnit/DataDriven/DataDrivenHelper.cs @@ -110,9 +110,9 @@ public static IEnumerable ReadDataDriveFile(string folder, string /// Exception when parameter not found in row /// How to use it: /// { - /// var a = TestContext.CurrentContext.TestDirectory; - /// a = string.Format(CultureInfo.CurrentCulture, "{0}{1}", a, @"\DataDriven\TestDataCsv.csv"); - /// return DataDrivenHelper.ReadDataDriveFileCsv(a, new[] { "user", "password" }, "credentialCsv"); + /// var path = TestContext.CurrentContext.TestDirectory; + /// path = string.Format(CultureInfo.CurrentCulture, "{0}{1}", path, @"\DataDriven\TestDataCsv.csv"); + /// return DataDrivenHelper.ReadDataDriveFileCsv(path, new[] { "user", "password" }, "credentialCsv"); /// } /// public static IEnumerable ReadDataDriveFileCsv(string file, string[] diffParam, string testName) diff --git a/Objectivity.Test.Automation.Tests.NUnit/DataDriven/TestData.cs b/Objectivity.Test.Automation.Tests.NUnit/DataDriven/TestData.cs index 4fd5ed225..a35a6129b 100644 --- a/Objectivity.Test.Automation.Tests.NUnit/DataDriven/TestData.cs +++ b/Objectivity.Test.Automation.Tests.NUnit/DataDriven/TestData.cs @@ -60,9 +60,9 @@ public static IEnumerable LinksExcel() public static IEnumerable CredentialsCSV() { - var a = TestContext.CurrentContext.TestDirectory; - a = string.Format(CultureInfo.CurrentCulture, "{0}{1}", a, @"\DataDriven\TestDataCsv.csv"); - return DataDrivenHelper.ReadDataDriveFileCsv(a, new[] { "user", "password" }, "credentialCsv"); + var path = TestContext.CurrentContext.TestDirectory; + path = string.Format(CultureInfo.CurrentCulture, "{0}{1}", path, @"\DataDriven\TestDataCsv.csv"); + return DataDrivenHelper.ReadDataDriveFileCsv(path, new[] { "user", "password" }, "credentialCsv"); } } }