@@ -51,8 +51,8 @@ public void GivenUninitializedValuesArgument_WhenConstructorIsInvoked_ThenExcept
5151 Assert . Throws < ArgumentNullException > ( ( ) => new FixedValuesRequest ( type , values ) ) ;
5252 }
5353
54- [ Fact ( DisplayName = "GIVEN empty argument WHEN constructor is invoked THEN exception is thrown" ) ]
55- public void GivenEmptyArgument_WhenConstructorIsInvoked_ThenExceptionIsThrown ( )
54+ [ Fact ( DisplayName = "GIVEN empty values argument WHEN constructor is invoked THEN exception is thrown" ) ]
55+ public void GivenEmptyValuesArgument_WhenConstructorIsInvoked_ThenExceptionIsThrown ( )
5656 {
5757 // Arrange
5858 var type = typeof ( int ) ;
@@ -66,19 +66,18 @@ public void GivenEmptyArgument_WhenConstructorIsInvoked_ThenExceptionIsThrown()
6666
6767 [ InlineData ( typeof ( int ) , 2 ) ]
6868 [ InlineData ( 1 , typeof ( int ) ) ]
69- [ Theory ( DisplayName = "GIVEN incomparable argument WHEN constructor is invoked THEN parameters are properly assigned" ) ]
70- public void GivenIncomparableArgument_WhenConstructorIsInvoked_ThenParametersAreProperlyAssigned (
71- object first ,
72- object second )
69+ [ Theory ( DisplayName = "GIVEN different type arguments WHEN constructor is invoked THEN parameters are properly assigned" ) ]
70+ public void GivenDifferentTypeArguments_WhenConstructorIsInvoked_ThenParametersAreProperlyAssigned (
71+ params object [ ] values )
7372 {
7473 // Arrange
7574 var type = typeof ( int ) ;
7675
7776 // Act
78- var attribute = new FixedValuesRequest ( type , first , second ) ;
77+ var attribute = new FixedValuesRequest ( type , values ) ;
7978
8079 // Assert
81- attribute . Values . Should ( ) . HaveCount ( 2 ) . And . BeEquivalentTo ( new [ ] { first , second } ) ;
80+ attribute . Values . Should ( ) . HaveCount ( 2 ) . And . BeEquivalentTo ( values ) ;
8281 }
8382
8483 [ Fact ( DisplayName = "GIVEN valid arguments WHEN ToString is invoked THEN text conteins necessary information" ) ]
@@ -126,8 +125,8 @@ public void GivenTwoRequests_WhenEqualsIsInvoked_ThenExpectedValueIsReturned(
126125 }
127126
128127 [ MemberData ( nameof ( ComparisonTestData ) ) ]
129- [ Theory ( DisplayName = "GIVEN two requests WHEN GetHashCode is invoked THEN expected value is returned" ) ]
130- public void GivenTwoRequests_WhenGetHashCodeIsInvoked_ThenExpectedValueIsReturned (
128+ [ Theory ( DisplayName = "GIVEN two requests WHEN hashcodes are compared THEN expected value is returned" ) ]
129+ public void GivenTwoRequests_WhenHashCodesAreCompared_ThenExpectedValueIsReturned (
131130 Type typeA ,
132131 IEnumerable valuesA ,
133132 Type typeB ,
@@ -148,7 +147,7 @@ public void GivenTwoRequests_WhenGetHashCodeIsInvoked_ThenExpectedValueIsReturne
148147 }
149148
150149 [ Fact ( DisplayName = "GIVEN uninitialized request WHEN Equals is invoked THEN False is returned" ) ]
151- [ SuppressMessage ( "Maintainability" , "CA1508:Avoid dead conditional code" , Justification = "Test the logic" ) ]
150+ [ SuppressMessage ( "Maintainability" , "CA1508:Avoid dead conditional code" , Justification = "Required to test the logic" ) ]
152151 public void GivenUninitializedRequest_WhenEqualsIsInvoked_ThenFalseIsReturned ( )
153152 {
154153 // Arrange
@@ -159,7 +158,7 @@ public void GivenUninitializedRequest_WhenEqualsIsInvoked_ThenFalseIsReturned()
159158 var result = initialized . Equals ( uninitialized ) ;
160159
161160 // Assert
162- result . Should ( ) . Be ( false ) ;
161+ result . Should ( ) . BeFalse ( ) ;
163162 }
164163
165164 [ Fact ( DisplayName = "GIVEN different type of object WHEN Equals is invoked THEN False is returned" ) ]
@@ -173,7 +172,7 @@ public void GivenDifferentTypeOfObject_WhenEqualsIsInvoked_ThenFalseIsReturned()
173172 var result = request . Equals ( differentObject ) ;
174173
175174 // Assert
176- result . Should ( ) . Be ( false ) ;
175+ result . Should ( ) . BeFalse ( ) ;
177176 }
178177
179178 [ AutoData ]
@@ -191,13 +190,13 @@ public void GivenDifferentTypeOfValuesRequest_WhenEqualsIsInvoked_ThenFalseIsRet
191190 var text = fixedRequest . ToString ( ) ;
192191
193192 // Assert
194- result . Should ( ) . Be ( false ) ;
193+ result . Should ( ) . BeFalse ( ) ;
195194 text . Should ( ) . NotBeNull ( ) ;
196195 }
197196
198197 [ AutoData ]
199- [ Theory ( DisplayName = "GIVEN different type of ValuesRequest WHEN hashcodes are compared THEN hashcodes are not equal" ) ]
200- public void GivenDifferentTypeOfValuesRequest_WhenHashCodesAreCompared_ThenHashCodesAreNotEqual (
198+ [ Theory ( DisplayName = "GIVEN ValuesRequests of different type WHEN hashcodes are compared THEN hashcodes are not equal" ) ]
199+ public void GivenValuesRequestsOfDifferentType_WhenHashCodesAreCompared_ThenHashCodesAreNotEqual (
201200 int value )
202201 {
203202 // Arrange
@@ -211,7 +210,7 @@ public void GivenDifferentTypeOfValuesRequest_WhenHashCodesAreCompared_ThenHashC
211210 var result = hashA == hashB ;
212211
213212 // Assert
214- result . Should ( ) . Be ( false ) ;
213+ result . Should ( ) . BeFalse ( ) ;
215214 }
216215
217216 [ InlineAutoData ( typeof ( ExceptValuesRequest ) ) ]
0 commit comments