Skip to content

Commit

Permalink
Fix codestyle issue SA1601
Browse files Browse the repository at this point in the history
  • Loading branch information
ITaluone committed Apr 6, 2022
1 parent 994df03 commit ba63852
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 17 deletions.
36 changes: 19 additions & 17 deletions Tests/Benchmarks/UsersOfGetClosedGenericInterfaces.cs
Expand Up @@ -30,7 +30,7 @@ private class Context : IEquivalencyValidationContext
public INode CurrentNode { get; }
public Reason Reason { get; }
public Tracer Tracer { get; }
public IEquivalencyAssertionOptions Options { get; }
public IEquivalencyAssertionOptions Options { get; internal set; }
public bool IsCyclicReference(object expectation) => throw new NotImplementedException();

public IEquivalencyValidationContext AsNestedMember(IMember expectationMember) => throw new NotImplementedException();
Expand Down Expand Up @@ -147,25 +147,27 @@ public void GlobalSetup()
break;

default:
{
if (DataType == typeof(TimeSpan))
values[i] = faker.Date.Future() - faker.Date.Future();
else if (DataType == typeof(Guid))
values[i] = faker.Random.Guid();
else if (DataType == typeof(Dictionary<int, int>))
values[i] = new Dictionary<int, int>() { { faker.Random.Int(), faker.Random.Int() } };
else if (DataType == typeof(IEnumerable<int>))
values[i] = new int[] { faker.Random.Int(), faker.Random.Int() };
else
throw new Exception("Unable to populate data of type " + DataType);

break;
}
{
if (DataType == typeof(TimeSpan))
values[i] = faker.Date.Future() - faker.Date.Future();
else if (DataType == typeof(Guid))
values[i] = faker.Random.Guid();
else if (DataType == typeof(Dictionary<int, int>))
values[i] = new Dictionary<int, int>() { { faker.Random.Int(), faker.Random.Int() } };
else if (DataType == typeof(IEnumerable<int>))
values[i] = new int[] { faker.Random.Int(), faker.Random.Int() };
else
throw new Exception("Unable to populate data of type " + DataType);

break;
}
}
}

context = new Context();
new Config();
context = new Context()
{
Options = new Config()
};
}

[Benchmark]
Expand Down
Expand Up @@ -4,6 +4,9 @@

namespace FluentAssertions.Specs.Collections
{
/// <summary>
/// This part contains tests that address AllSatisfy
/// </summary>
public partial class GenericCollectionAssertionOfStringSpecs
{
public class AllSatisfy
Expand Down
Expand Up @@ -9,6 +9,9 @@

namespace FluentAssertions.Specs.Collections
{
/// <summary>
/// This part of the class contains assertions of general generic string collections
/// </summary>
public partial class GenericCollectionAssertionOfStringSpecs
{
[Fact]
Expand Down

0 comments on commit ba63852

Please sign in to comment.