Skip to content

Commit

Permalink
Changed 'a' variable to 'path'
Browse files Browse the repository at this point in the history
  • Loading branch information
bglubiak committed Feb 21, 2018
1 parent 630a146 commit ffdbaf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ public static IEnumerable<TestCaseData> ReadDataDriveFile(string folder, string
/// <exception cref="DataDrivenReadException">Exception when parameter not found in row</exception>
/// <example>How to use it: <code>
/// {
/// 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");
/// }
/// </code></example>
public static IEnumerable<TestCaseData> ReadDataDriveFileCsv(string file, string[] diffParam, string testName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
}

0 comments on commit ffdbaf0

Please sign in to comment.