Lines Matching refs:NSString
37 + (NSException *)failureInFile:(NSString *)filename
39 reason:(NSString *)reason; argument
43 + (NSException *)failureInFile:(NSString *)filename
45 reason:(NSString *)reason { argument
60 + (NSException *)failureInFile:(NSString *)filename
62 withDescription:(NSString *)formatString, ... { argument
64 NSString *testDescription = @"";
69 [[[NSString alloc] initWithFormat:formatString arguments:vl] autorelease];
73 NSString *reason = testDescription;
78 + (NSException *)failureInCondition:(NSString *)condition
80 inFile:(NSString *)filename
82 withDescription:(NSString *)formatString, ... { argument
84 NSString *testDescription = @"";
89 [[[NSString alloc] initWithFormat:formatString arguments:vl] autorelease];
93 NSString *reason = [NSString stringWithFormat:@"'%@' should be %s. %@",
101 inFile:(NSString *)filename
103 withDescription:(NSString *)formatString, ... { argument
105 NSString *testDescription = @"";
110 [[[NSString alloc] initWithFormat:formatString arguments:vl] autorelease];
114 NSString *reason =
115 [NSString stringWithFormat:@"'%@' should be equal to '%@'. %@",
124 inFile:(NSString *)filename
126 withDescription:(NSString *)formatString, ... { argument
128 NSString *testDescription = @"";
133 [[[NSString alloc] initWithFormat:formatString arguments:vl] autorelease];
137 NSString *reason;
140 [NSString stringWithFormat:@"'%@' should be equal to '%@'. %@",
144 [NSString stringWithFormat:@"'%@' should be equal to '%@' +/-'%@'. %@",
151 + (NSException *)failureInRaise:(NSString *)expression
152 inFile:(NSString *)filename
154 withDescription:(NSString *)formatString, ... { argument
156 NSString *testDescription = @"";
161 [[[NSString alloc] initWithFormat:formatString arguments:vl] autorelease];
165 NSString *reason = [NSString stringWithFormat:@"'%@' should raise. %@",
171 + (NSException *)failureInRaise:(NSString *)expression
173 inFile:(NSString *)filename
175 withDescription:(NSString *)formatString, ... { argument
177 NSString *testDescription = @"";
182 [[[NSString alloc] initWithFormat:formatString arguments:vl] autorelease];
186 NSString *reason;
192 reason = [NSString stringWithFormat:@"'%@' raised '%@'. %@",
201 NSString *STComposeString(NSString *formatString, ...) {
202 NSString *reason = @"";
207 [[[NSString alloc] initWithFormat:formatString arguments:vl] autorelease];
213 NSString *const SenTestFailureException = @"SenTestFailureException";
214 NSString *const SenTestFilenameKey = @"SenTestFilenameKey";
215 NSString *const SenTestLineNumberKey = @"SenTestLineNumberKey";
219 + (void)printException:(NSException *)exception fromTestName:(NSString *)name; argument
264 + (void)printException:(NSException *)exception fromTestName:(NSString *)name { argument
266 NSString *filename = [userInfo objectForKey:SenTestFilenameKey];
268 NSString *className = NSStringFromClass([self class]);
325 - (NSString *)description {
327 return [NSString stringWithFormat:@"-[%@ %@]", [self class],
420 NSString *name = NSStringFromClass(self);
447 NSString *exclusionsEnv = [NSString stringWithUTF8String:cExclusionsEnv];
449 NSString *exclusion;
462 NSString *string
463 = [NSString stringWithFormat: