diff --git a/Source/Codecov.Tests/Codecov.Tests.csproj b/Source/Codecov.Tests/Codecov.Tests.csproj
index 03415fd..ecf960c 100644
--- a/Source/Codecov.Tests/Codecov.Tests.csproj
+++ b/Source/Codecov.Tests/Codecov.Tests.csproj
@@ -9,6 +9,7 @@
+
diff --git a/Source/Codecov.Tests/Coverage/EnviornmentVariables/EnviornmentVariablesTests.cs b/Source/Codecov.Tests/Coverage/EnviornmentVariables/EnviornmentVariablesTests.cs
index 6d25cbe..4cc562c 100644
--- a/Source/Codecov.Tests/Coverage/EnviornmentVariables/EnviornmentVariablesTests.cs
+++ b/Source/Codecov.Tests/Coverage/EnviornmentVariables/EnviornmentVariablesTests.cs
@@ -19,7 +19,7 @@ public void GetEnviornmentVariables_Should_Never_Be_Null()
var enviornmentVariables = new Codecov.Coverage.EnviornmentVariables.EnviornmentVariables(options, continuousIntegrationServer);
// When
- var getEnviornmentVariables = enviornmentVariables.GetEnviornmentVariables;
+ var getEnviornmentVariables = enviornmentVariables.UserEnvironmentVariables;
// Then
getEnviornmentVariables.Should().NotBeNull();
@@ -35,7 +35,7 @@ public void Should_Include_CODECOV_ENV()
Environment.SetEnvironmentVariable("CODECOV_ENV", "foo");
// When
- var getEnviornmentVariables = enviornmentVariables.GetEnviornmentVariables;
+ var getEnviornmentVariables = enviornmentVariables.UserEnvironmentVariables;
// Then
getEnviornmentVariables["CODECOV_ENV"].Should().Be("foo");
@@ -47,13 +47,13 @@ public void Should_Include_EnviornmentVariables_From_ContiniousIntegrationServer
// Given
var options = Substitute.For();
var continuousIntegrationServer = Substitute.For();
- continuousIntegrationServer.GetEnviornmentVariables.Returns(new Dictionary { { "foo", "bar" }, { "fizz", "bizz" } });
+ continuousIntegrationServer.UserEnvironmentVariables.Returns(new Dictionary { { "foo", "bar" }, { "fizz", "bizz" } });
var enviornmentVariables = new Codecov.Coverage.EnviornmentVariables.EnviornmentVariables(options, continuousIntegrationServer);
Environment.SetEnvironmentVariable("foo", null);
Environment.SetEnvironmentVariable("fizz", null);
// When
- var getEnviornmentVariables = enviornmentVariables.GetEnviornmentVariables;
+ var getEnviornmentVariables = enviornmentVariables.UserEnvironmentVariables;
// Then
getEnviornmentVariables["foo"].Should().Be("bar");
@@ -72,7 +72,7 @@ public void Should_Include_EnviornmentVariables_From_Options()
Environment.SetEnvironmentVariable("fizz", "bizz");
// When
- var getEnviornmentVariables = enviornmentVariables.GetEnviornmentVariables;
+ var getEnviornmentVariables = enviornmentVariables.UserEnvironmentVariables;
// Then
getEnviornmentVariables["foo"].Should().Be("bar");
diff --git a/Source/Codecov.Tests/Coverage/Report/ReportTests.cs b/Source/Codecov.Tests/Coverage/Report/ReportTests.cs
index 2c9058b..a82fbef 100644
--- a/Source/Codecov.Tests/Coverage/Report/ReportTests.cs
+++ b/Source/Codecov.Tests/Coverage/Report/ReportTests.cs
@@ -20,13 +20,13 @@ public void If_DisableNetwork_Is_True_The_Source_Code_Should_Be_Empty()
{
// Given
var enviornmentVariables = Substitute.For();
- enviornmentVariables.GetEnviornmentVariables.Returns(new Dictionary { { "foo", "bar" }, { "fizz", "bizz" } });
+ enviornmentVariables.UserEnvironmentVariables.Returns(new Dictionary { { "foo", "bar" }, { "fizz", "bizz" } });
var options = Substitute.For();
options.DisableNetwork = true;
var sourceCode = Substitute.For();
sourceCode.GetAllButCodecovIgnored.Returns(new[] {
- Path.Combine(_systemDrive, "foo", "Class.cs"),
- Path.Combine(_systemDrive, "foo", "Interface", "IClass.cs")
+ Path.Combine(_systemDrive, "foo", "Class.cs"),
+ Path.Combine(_systemDrive, "foo", "Interface", "IClass.cs")
});
sourceCode.Directory.Returns(Path.Combine(_systemDrive, "foo"));
var coverage = Substitute.For();
@@ -45,13 +45,13 @@ public void Should_Generate_A_Report()
{
// Given
var enviornmentVariables = Substitute.For();
- enviornmentVariables.GetEnviornmentVariables.Returns(new Dictionary { { "foo", "bar" }, { "fizz", "bizz" } });
+ enviornmentVariables.UserEnvironmentVariables.Returns(new Dictionary { { "foo", "bar" }, { "fizz", "bizz" } });
var options = Substitute.For();
options.DisableNetwork = false;
var sourceCode = Substitute.For();
sourceCode.GetAllButCodecovIgnored.Returns(new[] {
- Path.Combine(_systemDrive, "foo", "Class.cs"),
- Path.Combine(_systemDrive, "foo", "Interface", "IClass.cs")
+ Path.Combine(_systemDrive, "foo", "Class.cs"),
+ Path.Combine(_systemDrive, "foo", "Interface", "IClass.cs")
});
sourceCode.Directory.Returns(Path.Combine(_systemDrive, "foo"));
var coverage = Substitute.For();
diff --git a/Source/Codecov.Tests/Services/ContiniousIntegrationServers/AppVeyorTests.cs b/Source/Codecov.Tests/Services/ContiniousIntegrationServers/AppVeyorTests.cs
index 8d43f8f..2b6989b 100644
--- a/Source/Codecov.Tests/Services/ContiniousIntegrationServers/AppVeyorTests.cs
+++ b/Source/Codecov.Tests/Services/ContiniousIntegrationServers/AppVeyorTests.cs
@@ -1,18 +1,18 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using Codecov.Services.ContinuousIntegrationServers;
using FluentAssertions;
+using Moq;
using Xunit;
namespace Codecov.Tests.Services.ContiniousIntegrationServers
{
- public class AppVeyorTests : IDisposable
+ public class AppVeyorTests
{
public static IEnumerable