@@ -12,17 +12,17 @@ public class DependencyQueueCycleErrorTests
1212 [ Test ]
1313 public void Create_NullRequiringItem ( )
1414 {
15- Invoking ( ( ) => Error . Cycle ( null ! , new Topic ( "b" ) ) )
16- . Should ( ) . Throw < ArgumentNullException > ( )
17- . Where ( e => e . ParamName == "requiringItem" ) ;
15+ Should . Throw < ArgumentNullException > (
16+ ( ) => Error . Cycle ( null ! , new Topic ( "b" ) )
17+ ) . ParamName . ShouldBe ( "requiringItem" ) ;
1818 }
1919
2020 [ Test ]
2121 public void Create_NullRequiredTopic ( )
2222 {
23- Invoking ( ( ) => Error . Cycle ( new Item ( "a" ) , null ! ) )
24- . Should ( ) . Throw < ArgumentNullException > ( )
25- . Where ( e => e . ParamName == "requiredTopic" ) ;
23+ Should . Throw < ArgumentNullException > (
24+ ( ) => Error . Cycle ( new Item ( "a" ) , null ! )
25+ ) . ParamName . ShouldBe ( "requiredTopic" ) ;
2626 }
2727
2828 [ Test ]
@@ -32,7 +32,7 @@ public void Type_Get()
3232 var topic = new Topic ( "b" ) ;
3333 var error = Error . Cycle ( item , topic ) ;
3434
35- error . Type . Should ( ) . Be ( ErrorType . Cycle ) ;
35+ error . Type . ShouldBe ( ErrorType . Cycle ) ;
3636 }
3737
3838 [ Test ]
@@ -42,7 +42,7 @@ public void RequiringItem_Get()
4242 var topic = new Topic ( "b" ) ;
4343 var error = Error . Cycle ( item , topic ) ;
4444
45- error . RequiringItem . Should ( ) . BeSameAs ( item ) ;
45+ error . RequiringItem . ShouldBeSameAs ( item ) ;
4646 }
4747
4848 [ Test ]
@@ -52,7 +52,7 @@ public void RequiredTopic_Get()
5252 var topic = new Topic ( "b" ) ;
5353 var error = Error . Cycle ( item , topic ) ;
5454
55- error . RequiredTopic . Should ( ) . BeSameAs ( topic ) ;
55+ error . RequiredTopic . ShouldBeSameAs ( topic ) ;
5656 }
5757
5858 [ Test ]
@@ -63,7 +63,7 @@ public void ToStringMethod()
6363 var topic = new Topic ( "b" ) ;
6464 var error = Error . Cycle ( item , topic ) ;
6565
66- error . ToString ( ) . Should ( ) . Be (
66+ error . ToString ( ) . ShouldBe (
6767 "The item 'a' cannot require topic 'b' because " +
6868 "an item providing that topic already requires item 'a'. " +
6969 "The dependency graph does not permit cycles."
0 commit comments