Permalink
Browse files

Renamed test classes to correspond to the new naming scheme.

  • Loading branch information...
1 parent 55f55ea commit 7e7482dfdf9b950b5f3d14e76d1003d39d8ae498 David Hart committed Mar 14, 2012
Oops, something went wrong.
@@ -26,7 +26,7 @@ - (void)test_beFalsy {
assertFail(test_expect(@"hello").beFalsy(), @"expected: a falsy value, got: hello, which is truthy");
}
-- (void)test_Not_beFalsy {
+- (void)test_toNot_beFalsy {
assertPass(test_expect(YES).toNot.beFalsy());
assertPass(test_expect(TRUE).toNot.beFalsy());
assertPass(test_expect(1).toNot.beFalsy());
@@ -20,7 +20,7 @@ - (void)test_beGreaterThanOrEqualTo {
assertFail(test_expect([NSNumber numberWithInt:3]).beGreaterThanOrEqualTo([NSNumber numberWithInt:4]), @"expected: 3 to be greater than or equal to 4");
}
-- (void)test_Not_beGreaterThanOrEqualTo {
+- (void)test_toNot_beGreaterThanOrEqualTo {
assertPass(test_expect(3).toNot.beGreaterThanOrEqualTo(5));
assertPass(test_expect(3.8).toNot.beGreaterThanOrEqualTo(3.9));
assertPass(test_expect([NSNumber numberWithInt:3]).toNot.beGreaterThanOrEqualTo([NSNumber numberWithInt:4]));
@@ -21,7 +21,7 @@ - (void)test_beGreaterThan {
assertFail(test_expect([NSNumber numberWithInt:3]).beGreaterThan([NSNumber numberWithInt:4]), @"expected: 3 to be greater than 4");
}
-- (void)test_Not_beGreaterThan {
+- (void)test_toNot_beGreaterThan {
assertPass(test_expect(2).toNot.beGreaterThan(3));
assertPass(test_expect(3.8).toNot.beGreaterThan(3.9));
assertPass(test_expect([NSNumber numberWithInt:3]).toNot.beGreaterThan([NSNumber numberWithInt:4]));
@@ -23,7 +23,7 @@ - (void)test_be {
assertFail(test_expect(nil).beIdenticalTo(foo), ([NSString stringWithFormat:@"expected: <%p>, got: <0x0>", foo]));
}
-- (void)test_Not_be {
+- (void)test_toNot_be {
assertPass(test_expect(foo).toNot.beIdenticalTo(foo2));
assertPass(test_expect(nil).toNot.beIdenticalTo(foo));
assertFail(test_expect(nil).toNot.beIdenticalTo(nil), @"expected: not <0x0>, got: <0x0>");
@@ -30,7 +30,7 @@ - (void)test_beInTheRangeOf {
assertPass(test_expect([NSNumber numberWithInt:5]).beInTheRangeOf(1.0, 10.0));
}
-- (void)test_Not_beInTheRangeOf {
+- (void)test_toNot_beInTheRangeOf {
assertPass(test_expect(0).toNot.beInTheRangeOf(1,10));
assertPass(test_expect(11).toNot.beInTheRangeOf(1,10));
@@ -25,7 +25,7 @@ - (void)test_beInstanceOf {
assertPass(test_expect(baz).beInstanceOf([Foo class]));
}
-- (void)test_Not_beInstanceOf {
+- (void)test_toNot_beInstanceOf {
assertPass(test_expect(foo).toNot.beInstanceOf([Bar class]));
assertPass(test_expect(bar).toNot.beInstanceOf([Foo class]));
assertFail(test_expect(nil).toNot.beInstanceOf([Foo class]), @"the actual value is nil/null");
@@ -28,7 +28,7 @@ - (void)test_beKindOf {
assertPass(test_expect(qux).beKindOf([Foo class]));
}
-- (void)test_Not_beKindOf {
+- (void)test_toNot_beKindOf {
assertPass(test_expect(foo).toNot.beKindOf([Bar class]));
assertPass(test_expect(bar).toNot.beKindOf([Baz class]));
assertPass(test_expect(baz).toNot.beKindOf([Foo class]));
@@ -20,7 +20,7 @@ - (void)test_beLessThanOrEqualTo {
assertFail(test_expect([NSNumber numberWithInt:3]).beLessThanOrEqualTo([NSNumber numberWithInt:2]), @"expected: 3 to be less than or equal to 2");
}
-- (void)test_Not_beLessThanOrEqualTo {
+- (void)test_toNot_beLessThanOrEqualTo {
assertPass(test_expect(3).toNot.beLessThanOrEqualTo(2));
assertPass(test_expect(3.8).toNot.beLessThanOrEqualTo(3.2));
assertPass(test_expect([NSNumber numberWithInt:3]).toNot.beLessThanOrEqualTo([NSNumber numberWithInt:2]));
@@ -20,7 +20,7 @@ - (void)test_beLessThan {
assertFail(test_expect([NSNumber numberWithInt:3]).beLessThan([NSNumber numberWithInt:2]), @"expected: 3 to be less than 2");
}
-- (void)test_Not_beLessThan {
+- (void)test_toNot_beLessThan {
assertPass(test_expect(3).toNot.beLessThan(2));
assertPass(test_expect(3.8).toNot.beLessThan(3.2));
assertPass(test_expect([NSNumber numberWithInt:3]).toNot.beLessThan([NSNumber numberWithInt:2]));
@@ -19,7 +19,7 @@ - (void)test_beNil {
assertFail(test_expect(@"foo").beNil(), @"expected: nil/null, got: foo");
}
-- (void)test_Not_beNil {
+- (void)test_toNot_beNil {
assertPass(test_expect(@"foo").toNot.beNil());
assertFail(test_expect(nil).toNot.beNil(), @"expected: not nil/null, got: nil/null");
assertFail(test_expect(nilObject).toNot.beNil(), @"expected: not nil/null, got: nil/null");
@@ -30,7 +30,7 @@ - (void)test_beNull {
assertPass(test_expect(nullPointer).beNull());
}
-- (void)test_Not_beNull {
+- (void)test_toNot_beNull {
assertFail(test_expect(NULL).toNot.beNull(), @"expected: not nil/null, got: nil/null");
assertFail(test_expect(nullPointer).toNot.beNull(), @"expected: not nil/null, got: nil/null");
}
@@ -14,7 +14,7 @@ - (void)test_beSubclassOf {
assertFail(test_expect(@"foo").beSubclassOf([Baz class]), @"the actual value is not a Class");
}
-- (void)test_Not_beSubclassOf {
+- (void)test_toNot_beSubclassOf {
assertPass(test_expect([Foo class]).toNot.beSubclassOf([Bar class]));
assertPass(test_expect([Bar class]).toNot.beSubclassOf([Baz class]));
assertPass(test_expect([Baz class]).toNot.beSubclassOf([Foo class]));
@@ -26,7 +26,7 @@ - (void)test_beTruthy {
assertFail(test_expect(nullPointer).beTruthy(), @"expected: a truthy value, got: nil/null, which is falsy");
}
-- (void)test_Not_beTruthy {
+- (void)test_toNot_beTruthy {
assertPass(test_expect(NO).toNot.beTruthy());
assertPass(test_expect(FALSE).toNot.beTruthy());
assertPass(test_expect(0).toNot.beTruthy());
@@ -1,20 +1,20 @@
#import "TestHelper.h"
-@interface EXPMatchers_toContainTest : SenTestCase {
+@interface EXPMatchers_containTest : SenTestCase {
NSArray *array, *array2;
NSString *string;
}
@end
-@implementation EXPMatchers_toContainTest
+@implementation EXPMatchers_containTest
- (void)setUp {
array = [NSArray arrayWithObjects:@"foo", @"bar", @"baz", nil];
array2 = [NSArray arrayWithObjects:[NSString class], [NSDictionary class], nil];
string = @"foo|bar,baz";
}
-- (void)test_toContain {
+- (void)test_contain {
assertPass(test_expect(array).contain(@"foo"));
assertPass(test_expect(array).contain(@"bar"));
assertPass(test_expect(array).contain(@"baz"));
@@ -28,7 +28,7 @@ - (void)test_toContain {
assertPass(test_expect(array2).contain([NSString class]));
}
-- (void)test_Not_toContain {
+- (void)test_toNot_contain {
assertPass(test_expect(array).toNot.contain(@"qux"));
assertPass(test_expect(array).toNot.contain(@"quux"));
assertPass(test_expect(string).toNot.contain(@"qux"));
Oops, something went wrong.

0 comments on commit 7e7482d

Please sign in to comment.