Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
andreise committed Feb 11, 2024
1 parent 1ff475a commit 0c6a920
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/core-taggeds/Taggeds.Tests.Old/TestData/TestDataSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,59 +12,59 @@ public static IEnumerable<object[]> SuccessNullTestSource
=>
new Result<RefType?, StructType>[]
{
Result.Success<RefType?>(null).With<StructType>(),
Result.Success<RefType?>(null),
Result<RefType?, StructType>.Success(null),
new(null),
null
Result.Success<RefType?>(null).With<StructType>(),
Result.Success<RefType?>(null),
Result<RefType?, StructType>.Success(null),
new(null),
null
}
.ToTestSource();

public static IEnumerable<object[]> SuccessPlusFifteenIdRefTypeTestSource
=>
new Result<RefType, StructType>[]
{
Result.Success(PlusFifteenIdRefType).With<StructType>(),
Result.Success(PlusFifteenIdRefType),
Result<RefType, StructType>.Success(PlusFifteenIdRefType),
new(PlusFifteenIdRefType),
PlusFifteenIdRefType
Result.Success(PlusFifteenIdRefType).With<StructType>(),
Result.Success(PlusFifteenIdRefType),
Result<RefType, StructType>.Success(PlusFifteenIdRefType),
new(PlusFifteenIdRefType),
PlusFifteenIdRefType
}
.ToTestSource();

public static IEnumerable<object[]> FailureDefaultTestSource
=>
new Result<RefType, StructType>[]
{
default,
new(),
new(default(StructType)),
Result.Failure(default(StructType)),
Result.Failure(default(StructType)).With<RefType>(),
Result<RefType, StructType>.Failure(default)
default,
new(),
new(default(StructType)),
Result.Failure(default(StructType)),
Result.Failure(default(StructType)).With<RefType>(),
Result<RefType, StructType>.Failure(default)
}
.ToTestSource();

public static IEnumerable<object[]> FailureSomeTextStructTypeTestSource
=>
new Result<RefType, StructType>[]
{
new(SomeTextStructType),
Result.Failure(SomeTextStructType),
Result.Failure(SomeTextStructType).With<RefType>(),
Result<RefType, StructType>.Failure(SomeTextStructType)
new(SomeTextStructType),
Result.Failure(SomeTextStructType),
Result.Failure(SomeTextStructType).With<RefType>(),
Result<RefType, StructType>.Failure(SomeTextStructType)
}
.ToTestSource();

public static IEnumerable<object?[]> ObjectNullableTestSource
=>
new object?[]
{
null,
new(),
MinusFifteen,
PlusFifteenIdRefType,
SomeTextStructType
null,
new(),
MinusFifteen,
PlusFifteenIdRefType,
SomeTextStructType
}
.ToNullableTestSource();

Expand Down

0 comments on commit 0c6a920

Please sign in to comment.