File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
test/Microsoft.OpenApi.Tests/Expressions Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 8
8
namespace Microsoft . OpenApi . Tests . Writers
9
9
{
10
10
[ Collection ( "DefaultSettings" ) ]
11
- public class QueryExpressionTests
11
+ public class PathExpressionTests
12
12
{
13
13
[ Theory ]
14
14
[ InlineData ( null ) ]
15
15
[ InlineData ( "" ) ]
16
16
[ InlineData ( " " ) ]
17
- public void QueryExpressionConstructorThrows ( string name )
17
+ public void PathExpressionConstructorThrows ( string name )
18
18
{
19
19
// Arrange
20
- Action test = ( ) => new QueryExpression ( name ) ;
20
+ Action test = ( ) => new PathExpression ( name ) ;
21
21
22
22
// Act
23
23
Assert . Throws < ArgumentException > ( "name" , test ) ;
24
24
}
25
25
26
26
[ Fact ]
27
- public void QueryExpressionConstructorWorks ( )
27
+ public void PathExpressionConstructorWorks ( )
28
28
{
29
29
// Arrange
30
30
string name = "anyValue" ;
31
31
32
32
// Act
33
- var query = new QueryExpression ( name ) ;
33
+ var path = new PathExpression ( name ) ;
34
34
35
35
// Assert
36
- Assert . Equal ( "query .anyValue" , query . Expression ) ;
37
- Assert . Equal ( "anyValue" , query . Name ) ;
36
+ Assert . Equal ( "path .anyValue" , path . Expression ) ;
37
+ Assert . Equal ( "anyValue" , path . Name ) ;
38
38
}
39
39
}
40
40
}
Original file line number Diff line number Diff line change 8
8
namespace Microsoft . OpenApi . Tests . Writers
9
9
{
10
10
[ Collection ( "DefaultSettings" ) ]
11
- public class PathExpressionTests
11
+ public class QueryExpressionTests
12
12
{
13
13
[ Theory ]
14
14
[ InlineData ( null ) ]
15
15
[ InlineData ( "" ) ]
16
16
[ InlineData ( " " ) ]
17
- public void PathExpressionConstructorThrows ( string name )
17
+ public void QueryExpressionConstructorThrows ( string name )
18
18
{
19
19
// Arrange
20
- Action test = ( ) => new PathExpression ( name ) ;
20
+ Action test = ( ) => new QueryExpression ( name ) ;
21
21
22
22
// Act
23
23
Assert . Throws < ArgumentException > ( "name" , test ) ;
24
24
}
25
25
26
26
[ Fact ]
27
- public void PathExpressionConstructorWorks ( )
27
+ public void QueryExpressionConstructorWorks ( )
28
28
{
29
29
// Arrange
30
30
string name = "anyValue" ;
31
31
32
32
// Act
33
- var path = new PathExpression ( name ) ;
33
+ var query = new QueryExpression ( name ) ;
34
34
35
35
// Assert
36
- Assert . Equal ( "path .anyValue" , path . Expression ) ;
37
- Assert . Equal ( "anyValue" , path . Name ) ;
36
+ Assert . Equal ( "query .anyValue" , query . Expression ) ;
37
+ Assert . Equal ( "anyValue" , query . Name ) ;
38
38
}
39
39
}
40
40
}
You can’t perform that action at this time.
0 commit comments