Skip to content

Commit

Permalink
Reset the last updated on each test
Browse files Browse the repository at this point in the history
  • Loading branch information
xenolightning committed May 30, 2024
1 parent 7a8d205 commit 1ce8541
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Mindscape.Raygun4Net.NetCore.Tests
{
[TestFixture]
[NonParallelizable]
public class RaygunMessageBuilderTests
{
private RaygunSettings _settings;
Expand Down Expand Up @@ -213,6 +212,8 @@ public void SetEnvironmentDetails_WithEnvironmentVariables_Contains()
"*_Banana*"
}
};

RaygunEnvironmentMessageBuilder.LastUpdate = DateTime.MinValue;
var builder = RaygunMessageBuilder.New(settings)
.SetEnvironmentDetails();

Expand Down Expand Up @@ -243,6 +244,8 @@ public void SetEnvironmentDetails_WithEnvironmentVariables_Star_ShouldReturnNoth
"* *",
}
};

RaygunEnvironmentMessageBuilder.LastUpdate = DateTime.MinValue;
var builder = RaygunMessageBuilder.New(settings)
.SetEnvironmentDetails();

Expand Down Expand Up @@ -270,6 +273,8 @@ public void SetEnvironmentDetails_WithEnvironmentVariablesWithDifferentCasing_Sh
search
}
};

RaygunEnvironmentMessageBuilder.LastUpdate = DateTime.MinValue;
var builder = RaygunMessageBuilder.New(settings)
.SetEnvironmentDetails();

Expand Down

0 comments on commit 1ce8541

Please sign in to comment.