Skip to content

Commit

Permalink
Rename tests to more functional names
Browse files Browse the repository at this point in the history
In order to get away from the 'When_x_it_should_be_y'
start to rename the tests
  • Loading branch information
IT-VBFK committed Apr 7, 2022
1 parent 8e2634d commit 540fba3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Expand Up @@ -705,7 +705,7 @@ public void When_ExtendedProperties_do_not_match_and_property_is_excluded_it_sho
}

[Fact]
public void When_object_of_type_unequal_to_DataColumn_is_asserted_with_a_DataColumn_it_fails()
public void Data_column_is_not_equivalent_to_another_type()
{
// Arrange
var subject = new
Expand Down
Expand Up @@ -288,7 +288,7 @@ public void When_object_of_type_unequal_to_DataRelation_is_asserted_with_a_DataR
}

[Fact]
public void When_data_relation_is_null_and_isnt_expected_to_be_equivalence_test_fails()
public void Null_is_not_equivalent_to_a_corrent_initialized_object()
{
// Arrange
var dataSet = new DataSet();
Expand Down
4 changes: 2 additions & 2 deletions Tests/FluentAssertions.Equivalency.Specs/DataRowSpecs.cs
Expand Up @@ -336,7 +336,7 @@ public void When_data_row_data_does_not_match_but_the_column_is_excluded_then_eq
}

[Fact]
public void When_object_of_type_unequal_to_DataRow_is_asserted_with_a_DataRow_it_fails()
public void Data_row_is_not_equivalent_to_another_type()
{
// Arrange
var table = new DataTable();
Expand Down Expand Up @@ -375,7 +375,7 @@ public void When_subject_of_type_DataRowCollection_is_expected_and_is_not_it_fai
act.Should().Throw<XunitException>()
.WithMessage("Expected* to be of type DataRowCollection, but found*");
}

[Fact]
public void When_data_row_has_column_then_asserting_that_it_has_that_column_should_succeed()
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/FluentAssertions.Equivalency.Specs/DataSetSpecs.cs
Expand Up @@ -616,7 +616,7 @@ public void When_data_set_tables_contain_different_data_equivalence_test_should_
}

[Fact]
public void When_object_of_type_unequal_to_DataSet_is_asserted_with_a_DataSet_it_fails()
public void Data_set_is_not_equivalent_to_another_type()
{
// Arrange
var subject = new
Expand Down
2 changes: 1 addition & 1 deletion Tests/FluentAssertions.Equivalency.Specs/DataTableSpecs.cs
Expand Up @@ -722,7 +722,7 @@ public void When_data_table_data_matches_in_different_order_and_the_row_match_mo
}

[Fact]
public void When_object_of_type_unequal_to_DataTable_is_asserted_with_a_DataTable_it_fails()
public void Data_table_is_not_equivalent_to_another_type()
{
// Arrange
var subject = new
Expand Down

0 comments on commit 540fba3

Please sign in to comment.