Skip to content

Commit

Permalink
cleanup test proj file
Browse files Browse the repository at this point in the history
  • Loading branch information
MJRichardson committed Feb 6, 2025
1 parent d808a6c commit 80a729c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<PackageId>OpenFeature.Contrib.Providers.EnvVar</PackageId>
<VersionNumber>0.0.1</VersionNumber> <!--x-release-please-version -->
<VersionPrefix>$(VersionNumber)</VersionPrefix>
<AssemblyVersion>$(VersionNumber)</AssemblyVersion>
Expand All @@ -11,5 +10,4 @@
<Authors>Octopus Deploy</Authors>
</PropertyGroup>


</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

namespace OpenFeature.Contrib.Providers.EnvVar.Test
{

public class EnvVarProviderTests
{
[Theory]
Expand Down Expand Up @@ -140,7 +139,7 @@ await ExecuteResolveErrorTest(prefix, flagKey, defaultValue, ErrorType.TypeMisma
public async Task ResolveStructureValueAsync_WhenEnvironmentVariablePresent_ShouldReturnValue(string prefix,
string flagKey, string value, string defaultValue)
{
Environment.SetEnvironmentVariable(prefix + flagKey, value.ToString());
Environment.SetEnvironmentVariable(prefix + flagKey, value);

var provider = new EnvVarProvider(prefix);
var resolutionDetails = await provider.ResolveStructureValueAsync(flagKey, new Value(defaultValue));
Expand Down Expand Up @@ -185,6 +184,5 @@ private async Task ExecuteResolveErrorTest<T>(string prefix, string flagKey, T d

Assert.Equal(expectedErrorType, exception.ErrorType);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoFixture.Xunit2" Version="4.17.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\OpenFeature.Contrib.Providers.EnvVar\OpenFeature.Contrib.Providers.EnvVar.csproj" />
</ItemGroup>

</Project>

0 comments on commit 80a729c

Please sign in to comment.