chore: rename tests to follow the i can
syntax
This commit is contained in:
parent
30ef7bd477
commit
67998e966f
10 changed files with 117 additions and 117 deletions
|
@ -4,7 +4,7 @@ namespace Geekeey.Extensions.Result.Tests;
|
|||
internal sealed class ResultUnboxTests
|
||||
{
|
||||
[Test]
|
||||
public void TryGetValue_1_ReturnsTrueAndSetsValue_ForSuccess()
|
||||
public void I_can_try_get_value_and_it_returns_true_and_sets_value_for_success_with_1_param()
|
||||
{
|
||||
var result = Success(2);
|
||||
var ok = result.TryGetValue(out var value);
|
||||
|
@ -17,7 +17,7 @@ internal sealed class ResultUnboxTests
|
|||
}
|
||||
|
||||
[Test]
|
||||
public void TryGetValue_1_ReturnsFalse_ForFailure()
|
||||
public void I_can_try_get_value_and_it_returns_false_for_failure_with_1_param()
|
||||
{
|
||||
var result = Failure<int>("error");
|
||||
var ok = result.TryGetValue(out var value);
|
||||
|
@ -30,7 +30,7 @@ internal sealed class ResultUnboxTests
|
|||
}
|
||||
|
||||
[Test]
|
||||
public void TryGetValue_2_ReturnsTrueAndSetsValue_ForSuccess()
|
||||
public void I_can_try_get_value_and_it_returns_true_and_sets_value_for_success_with_2_param()
|
||||
{
|
||||
var result = Success(2);
|
||||
var ok = result.TryGetValue(out var value, out var error);
|
||||
|
@ -44,7 +44,7 @@ internal sealed class ResultUnboxTests
|
|||
}
|
||||
|
||||
[Test]
|
||||
public void TryGetValue_2_ReturnsFalseAndSetsError_ForFailure()
|
||||
public void I_can_try_get_value_and_it_returns_false_and_sets_error_for_failure_with_2_param()
|
||||
{
|
||||
var result = Failure<int>("error");
|
||||
var ok = result.TryGetValue(out var value, out var error);
|
||||
|
@ -58,7 +58,7 @@ internal sealed class ResultUnboxTests
|
|||
}
|
||||
|
||||
[Test]
|
||||
public void TryGetError_1_ReturnsTrueAndSetsError_ForFailure()
|
||||
public void I_can_try_get_error_and_it_returns_true_and_sets_error_for_failure_with_1_param()
|
||||
{
|
||||
var result = Failure<int>("error");
|
||||
var ok = result.TryGetError(out var error);
|
||||
|
@ -71,7 +71,7 @@ internal sealed class ResultUnboxTests
|
|||
}
|
||||
|
||||
[Test]
|
||||
public void TryGetError_1_ReturnsFalse_ForSuccess()
|
||||
public void I_can_try_get_error_and_it_returns_false_for_success_with_1_param()
|
||||
{
|
||||
var result = Success(2);
|
||||
var ok = result.TryGetError(out var error);
|
||||
|
@ -84,7 +84,7 @@ internal sealed class ResultUnboxTests
|
|||
}
|
||||
|
||||
[Test]
|
||||
public void TryGetError_2_ReturnsTrueAndSetsError_ForFailure()
|
||||
public void I_can_try_get_error_and_it_returns_true_and_sets_error_for_failure_with_2_param()
|
||||
{
|
||||
var r = Failure<int>("error");
|
||||
var ok = r.TryGetError(out var error, out var value);
|
||||
|
@ -98,7 +98,7 @@ internal sealed class ResultUnboxTests
|
|||
}
|
||||
|
||||
[Test]
|
||||
public void TryGetError_2_ReturnsFalseAndSetsValue_ForSuccess()
|
||||
public void I_can_try_get_error_and_it_returns_false_and_sets_value_for_success_with_2_param()
|
||||
{
|
||||
var r = Success(2);
|
||||
var ok = r.TryGetError(out var error, out var value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue