Skip to content

Commit

Permalink
Fixed unstable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roryprimrose committed Apr 25, 2020
1 parent f008ef8 commit 0efa425
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace ModelBuilder.UnitTests.Scenarios
{
using System;
using System.Diagnostics.CodeAnalysis;
using FluentAssertions;
using ModelBuilder.Data;
Expand Down Expand Up @@ -32,13 +33,13 @@ public void CreatesParameterValuesRelativeToOtherParameterValues()
{
TestData.FemaleNames.Should().Contain(actual.FirstName);
}
else
else if (actual.Gender == Gender.Male)
{
TestData.MaleNames.Should().Contain(actual.FirstName);
}

var expectedEmail = (actual.FirstName + "." + actual.LastName + "@" + actual.Domain).ToLowerInvariant();

var expectedEmail = (actual.FirstName + "." + actual.LastName + "@" + actual.Domain).ToLowerInvariant().Replace(" ", "", StringComparison.CurrentCulture);
actual.Email.Should().StartWith(expectedEmail);
}
}
Expand Down

0 comments on commit 0efa425

Please sign in to comment.