Skip to content

Commit

Permalink
Renamed test methods
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelGerr committed Nov 18, 2024
1 parent c195ae3 commit 3abf4b1
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public class WithActionAndState
[Theory]
[InlineData(1, "text")]
[InlineData(2, 42)]
public void Should_pass_context_having_2_types(int index, object expected)
public void Should_pass_state_having_2_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -405,7 +405,7 @@ public void Should_pass_context_having_2_types(int index, object expected)
[InlineData(1, "text")]
[InlineData(2, 42)]
[InlineData(3, true)]
public void Should_pass_context_having_3_types(int index, object expected)
public void Should_pass_state_having_3_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -443,7 +443,7 @@ public void Should_pass_context_having_3_types(int index, object expected)
[InlineData(2, 42)]
[InlineData(3, true)]
[InlineData(4, "9FCEBE8E-AEED-4ADE-B597-562AFB9C9733")]
public void Should_pass_context_having_5_types(int index, object expected)
public void Should_pass_state_having_5_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -485,7 +485,7 @@ public void Should_pass_context_having_5_types(int index, object expected)
[Theory]
[InlineData(1, "default:text")]
[InlineData(2, 42)]
public void Should_pass_context_to_default_having_2_types(int index, object expected)
public void Should_pass_state_to_default_having_2_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -516,7 +516,7 @@ public void Should_pass_context_to_default_having_2_types(int index, object expe
[InlineData(1, "default:text")]
[InlineData(2, 42)]
[InlineData(3, true)]
public void Should_pass_context_to_default_having_3_types(int index, object expected)
public void Should_pass_state_to_default_having_3_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -554,7 +554,7 @@ public void Should_pass_context_to_default_having_3_types(int index, object expe
[InlineData(2, 42)]
[InlineData(3, true)]
[InlineData(4, "81F697B0-5B9B-4441-89EB-2970A85C1069")]
public void Should_pass_context_to_default_having_4_types(int index, object expected)
public void Should_pass_state_to_default_having_4_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -599,7 +599,7 @@ public void Should_pass_context_to_default_having_4_types(int index, object expe
[InlineData(3, true)]
[InlineData(4, "81F697B0-5B9B-4441-89EB-2970A85C1069")]
[InlineData(5, 'A')]
public void Should_pass_context_to_default_having_5_types(int index, object expected)
public void Should_pass_state_to_default_having_5_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -837,7 +837,7 @@ public class WithFuncAndContext
[Theory]
[InlineData(1, "text")]
[InlineData(2, 42)]
public void Should_pass_context_having_2_types(int index, object expected)
public void Should_pass_state_having_2_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -872,7 +872,7 @@ public void Should_pass_context_having_2_types(int index, object expected)
[InlineData(1, "text")]
[InlineData(2, 42)]
[InlineData(3, true)]
public void Should_pass_context_having_3_types(int index, object expected)
public void Should_pass_state_having_3_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -914,7 +914,7 @@ public void Should_pass_context_having_3_types(int index, object expected)
[InlineData(2, 42)]
[InlineData(3, true)]
[InlineData(4, "10C287C8-4D64-45CC-859E-873024D53DE3")]
public void Should_pass_context_having_4_types(int index, object expected)
public void Should_pass_state_having_4_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -963,7 +963,7 @@ public void Should_pass_context_having_4_types(int index, object expected)
[InlineData(3, true)]
[InlineData(4, "10C287C8-4D64-45CC-859E-873024D53DE3")]
[InlineData(5, 'A')]
public void Should_pass_context_having_5_types(int index, object expected)
public void Should_pass_state_having_5_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -1015,7 +1015,7 @@ public void Should_pass_context_having_5_types(int index, object expected)
[Theory]
[InlineData(1, "default:text")]
[InlineData(2, 42)]
public void Should_pass_context_to_default_having_2_types(int index, object expected)
public void Should_pass_state_to_default_having_2_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -1045,7 +1045,7 @@ public void Should_pass_context_to_default_having_2_types(int index, object expe
[InlineData(1, "default:text")]
[InlineData(2, 42)]
[InlineData(3, true)]
public void Should_pass_context_to_default_having_3_types(int index, object expected)
public void Should_pass_state_to_default_having_3_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -1082,7 +1082,7 @@ public void Should_pass_context_to_default_having_3_types(int index, object expe
[InlineData(2, 42)]
[InlineData(3, true)]
[InlineData(4, "1F99EE8B-862C-4068-B5E1-015EA81AA470")]
public void Should_pass_context_to_default_having_4_types(int index, object expected)
public void Should_pass_state_to_default_having_4_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -1126,7 +1126,7 @@ public void Should_pass_context_to_default_having_4_types(int index, object expe
[InlineData(3, true)]
[InlineData(4, "1F99EE8B-862C-4068-B5E1-015EA81AA470")]
[InlineData(5, 'A')]
public void Should_pass_context_to_default_having_5_types(int index, object expected)
public void Should_pass_state_to_default_having_5_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -1232,7 +1232,7 @@ public class WithActionAndState
[Theory]
[InlineData(1, "text")]
[InlineData(2, 42)]
public void Should_pass_context_having_2_types(int index, object expected)
public void Should_pass_state_having_2_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -1262,7 +1262,7 @@ public void Should_pass_context_having_2_types(int index, object expected)
[Theory]
[InlineData(1, "default:text")]
[InlineData(2, 42)]
public void Should_pass_context_to_default_having_2_types(int index, object expected)
public void Should_pass_state_to_default_having_2_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -1335,7 +1335,7 @@ public class WithFuncAndContext
[Theory]
[InlineData(1, "text")]
[InlineData(2, 42)]
public void Should_pass_context_having_2_types(int index, object expected)
public void Should_pass_state_having_2_types(int index, object expected)
{
var value = index switch
{
Expand Down Expand Up @@ -1369,7 +1369,7 @@ public void Should_pass_context_having_2_types(int index, object expected)
[Theory]
[InlineData(1, "default:text")]
[InlineData(2, 42)]
public void Should_pass_context_to_default_having_2_types(int index, object expected)
public void Should_pass_state_to_default_having_2_types(int index, object expected)
{
var value = index switch
{
Expand Down
16 changes: 8 additions & 8 deletions test/Thinktecture.Runtime.Extensions.Tests/EnumTests/Switch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void Should_use_correct_arg_with_keyless_enum()
public class WithActionAndState
{
[Fact]
public void Should_pass_context()
public void Should_pass_state()
{
ValidTestEnum calledActionOn = null;

Expand All @@ -132,7 +132,7 @@ public void Should_pass_context()
[Theory]
[InlineData(true)]
[InlineData(false)]
public void Should_pass_context_having_validatable_enum(bool useInvalidItem)
public void Should_pass_state_having_validatable_enum(bool useInvalidItem)
{
TestEnum calledActionOn = null;

Expand Down Expand Up @@ -165,7 +165,7 @@ public void Should_pass_context_having_validatable_enum(bool useInvalidItem)
[Theory]
[InlineData(true)]
[InlineData(false)]
public void Should_pass_context_having_struct(bool useInvalidItem)
public void Should_pass_state_having_struct(bool useInvalidItem)
{
TestSmartEnum_Struct_IntBased? calledActionOn = null;
var obj = new object();
Expand Down Expand Up @@ -208,7 +208,7 @@ public void Should_pass_context_having_struct(bool useInvalidItem)
}

[Fact]
public void Should_pass_context_with_keyless_enum()
public void Should_pass_state_with_keyless_enum()
{
KeylessTestEnum calledActionOn = null;

Expand Down Expand Up @@ -283,7 +283,7 @@ public void Should_call_correct_arg_with_keyless_enum()
public class WithFuncAndContext
{
[Fact]
public void Should_pass_context()
public void Should_pass_state()
{
var obj = new object();

Expand All @@ -306,7 +306,7 @@ public void Should_pass_context()
[Theory]
[InlineData(true)]
[InlineData(false)]
public void Should_pass_context_having_validatable_enum(bool useInvalidItem)
public void Should_pass_state_having_validatable_enum(bool useInvalidItem)
{
var obj = new object();
var testItem = useInvalidItem ? TestEnum.Get("invalid") : TestEnum.Item1;
Expand Down Expand Up @@ -336,7 +336,7 @@ public void Should_pass_context_having_validatable_enum(bool useInvalidItem)
[Theory]
[InlineData(true)]
[InlineData(false)]
public void Should_pass_context_having_struct(bool useInvalidItem)
public void Should_pass_state_having_struct(bool useInvalidItem)
{
var obj = new object();

Expand Down Expand Up @@ -377,7 +377,7 @@ public void Should_pass_context_having_struct(bool useInvalidItem)
}

[Fact]
public void Should_pass_context_with_keyless_enum()
public void Should_pass_state_with_keyless_enum()
{
var obj = new object();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public void Should_use_default_arg_with_keyless_enum()
public class WithActionAndState
{
[Fact]
public void Should_pass_context()
public void Should_pass_state()
{
ValidTestEnum calledActionOn = null;

Expand All @@ -217,7 +217,7 @@ public void Should_pass_context()
}

[Fact]
public void Should_pass_context_to_default()
public void Should_pass_state_to_default()
{
ValidTestEnum calledActionOn = null;

Expand All @@ -243,7 +243,7 @@ public void Should_pass_context_to_default()
[Theory]
[InlineData(true)]
[InlineData(false)]
public void Should_pass_context_having_validatable_enum(bool useInvalidItem)
public void Should_pass_state_having_validatable_enum(bool useInvalidItem)
{
TestEnum calledActionOn = null;

Expand Down Expand Up @@ -276,7 +276,7 @@ public void Should_pass_context_having_validatable_enum(bool useInvalidItem)
[Theory]
[InlineData(true)]
[InlineData(false)]
public void Should_pass_context_to_default_having_validatable_enum(bool useInvalidItem)
public void Should_pass_state_to_default_having_validatable_enum(bool useInvalidItem)
{
TestEnum calledActionOn = null;

Expand Down Expand Up @@ -304,7 +304,7 @@ public void Should_pass_context_to_default_having_validatable_enum(bool useInval
[Theory]
[InlineData(true)]
[InlineData(false)]
public void Should_pass_context_having_struct(bool useInvalidItem)
public void Should_pass_state_having_struct(bool useInvalidItem)
{
TestSmartEnum_Struct_IntBased? calledActionOn = null;
var obj = new object();
Expand Down Expand Up @@ -347,7 +347,7 @@ public void Should_pass_context_having_struct(bool useInvalidItem)
}

[Fact]
public void Should_pass_context_to_default_having_struct()
public void Should_pass_state_to_default_having_struct()
{
TestSmartEnum_Struct_IntBased? calledActionOn = null;
var obj = new object();
Expand Down Expand Up @@ -388,7 +388,7 @@ public void Should_pass_context_to_default_having_struct()
}

[Fact]
public void Should_pass_context_with_keyless_enum()
public void Should_pass_state_with_keyless_enum()
{
KeylessTestEnum calledActionOn = null;

Expand All @@ -412,7 +412,7 @@ public void Should_pass_context_with_keyless_enum()
}

[Fact]
public void Should_pass_context_to_default_with_keyless_enum()
public void Should_pass_state_to_default_with_keyless_enum()
{
KeylessTestEnum calledActionOn = null;

Expand Down Expand Up @@ -532,7 +532,7 @@ public void Should_call_default_with_keyless_enum()
public class WithFuncAndContext
{
[Fact]
public void Should_pass_context()
public void Should_pass_state()
{
var obj = new object();

Expand All @@ -559,7 +559,7 @@ public void Should_pass_context()
}

[Fact]
public void Should_pass_context_to_default()
public void Should_pass_state_to_default()
{
var obj = new object();

Expand All @@ -582,7 +582,7 @@ public void Should_pass_context_to_default()
[Theory]
[InlineData(true)]
[InlineData(false)]
public void Should_pass_context_having_validatable_enum(bool useInvalidItem)
public void Should_pass_state_having_validatable_enum(bool useInvalidItem)
{
var obj = new object();
var testItem = useInvalidItem ? TestEnum.Get("invalid") : TestEnum.Item1;
Expand Down Expand Up @@ -618,7 +618,7 @@ public void Should_pass_context_having_validatable_enum(bool useInvalidItem)
[Theory]
[InlineData(true)]
[InlineData(false)]
public void Should_pass_context_to_default_having_validatable_enum(bool useInvalidItem)
public void Should_pass_state_to_default_having_validatable_enum(bool useInvalidItem)
{
var obj = new object();

Expand Down Expand Up @@ -649,7 +649,7 @@ public void Should_pass_context_to_default_having_validatable_enum(bool useInval
[Theory]
[InlineData(true)]
[InlineData(false)]
public void Should_pass_context_having_struct(bool useInvalidItem)
public void Should_pass_state_having_struct(bool useInvalidItem)
{
var obj = new object();

Expand Down Expand Up @@ -695,7 +695,7 @@ public void Should_pass_context_having_struct(bool useInvalidItem)
}

[Fact]
public void Should_pass_context_to_default_having_struct()
public void Should_pass_state_to_default_having_struct()
{
var obj = new object();

Expand Down Expand Up @@ -734,7 +734,7 @@ public void Should_pass_context_to_default_having_struct()
}

[Fact]
public void Should_pass_context_with_keyless_enum()
public void Should_pass_state_with_keyless_enum()
{
var obj = new object();

Expand All @@ -760,7 +760,7 @@ public void Should_pass_context_with_keyless_enum()
}

[Fact]
public void Should_pass_context_to_default_with_keyless_enum()
public void Should_pass_state_to_default_with_keyless_enum()
{
var obj = new object();

Expand Down
Loading

0 comments on commit 3abf4b1

Please sign in to comment.