Permalink
Browse files

CatchSpecs changed back to should extensions

  • Loading branch information...
danielmarbach committed Jan 6, 2014
1 parent 6f9c346 commit 50c9048951aa7a45fa1d719a9bb72cf39a36d0c5
Showing with 6 additions and 8 deletions.
  1. +6 −8 Source/Machine.Specifications.Specs/CatchSpecs.cs
@@ -1,7 +1,5 @@
using System;
-using FluentAssertions;
-
namespace Machine.Specifications.Specs
{
[Subject(typeof(Catch))]
@@ -18,7 +16,7 @@ public class with_a_throwing_Action
Because of = () => { Result = Catch.Exception(() => { throw AnException; }); };
It should_return_the_same_exception =
- () => Result.Should().BeSameAs(AnException);
+ () => Result.ShouldBeTheSameAs(AnException);
}
[Subject(typeof(Catch))]
@@ -30,10 +28,10 @@ public class with_a_non_throwing_Action
Because of = () => { Result = Catch.Exception(() => { ActionSideEffect = "hi"; }); };
It should_access_the_propety =
- () => ActionSideEffect.Should().Be("hi");
+ () => ActionSideEffect.ShouldEqual("hi");
It should_return_null =
- () => Result.Should().BeNull();
+ () => Result.ShouldBeNull();
}
}
@@ -63,7 +61,7 @@ public class with_a_throwing_Func
Because of = () => { Result = Catch.Exception(() => Dummy.ThrowingProperty); };
It should_return_the_same_exception =
- () => Result.Should().BeSameAs(Dummy.AnException);
+ () => Result.ShouldBeTheSameAs(Dummy.AnException);
}
[Subject(typeof(Catch))]
@@ -75,10 +73,10 @@ public class with_a_non_throwing_Func
Because of = () => { Result = Catch.Exception(() => PropertyValue = Dummy.NonThrowingProperty); };
It should_access_the_propety =
- () => PropertyValue.Should().Be("hi");
+ () => PropertyValue.ShouldEqual("hi");
It should_return_null =
- () => Result.Should().BeNull();
+ () => Result.ShouldBeNull();
}
}
}

0 comments on commit 50c9048

Please sign in to comment.