Remove implementaion detailed based tests
#include <TestFramework.h>
#import <UIKit/UIColor.h>
-TEST(UIColorTest, ColorTests) {
+TEST(UIColor, ColorTests) {
UIColor* color = [UIColor redColor];
UIColor* color2 = [UIColor colorWithRed:1 green:0 blue:0 alpha:1];
EXPECT_OBJCEQ(color, color2);
@@ -30,42 +30,3 @@ TEST(UIColorTest, ColorTests) {
color2 = [UIColor colorWithRed:0 green:0 blue:0 alpha:1];
EXPECT_OBJCNE(color, color2);
}
\ No newline at end of file
-
-TEST(UIColorTest, NamedUIColorMethods) {
- UIColor* color = [UIColor redColor];
-
- NSUInteger retainCount = [color retainCount];
- ASSERT_TRUE_MSG(retainCount == NSUIntegerMax, "Failed: RetainCount not correct for UICachedColor");
-
- [color release];
- [color release];
- [color release];
- [color release];
- retainCount = [color retainCount];
- ASSERT_TRUE_MSG(retainCount == NSUIntegerMax, "Failed: RetainCount not correct for UICachedColor");
-
- [color retain];
- [color retain];
- [color retain];
- [color retain];
- retainCount = [color retainCount];
- ASSERT_TRUE_MSG(retainCount == NSUIntegerMax, "Failed: RetainCount not correct for UICachedColor");
-
- color = [UIColor blueColor];
- retainCount = [color retainCount];
- ASSERT_TRUE_MSG(retainCount == NSUIntegerMax, "Failed: RetainCount not correct for UICachedColor");
-
- [color release];
- [color release];
- [color release];
- [color release];
- retainCount = [color retainCount];
- ASSERT_TRUE_MSG(retainCount == NSUIntegerMax, "Failed: RetainCount not correct for UICachedColor");
-
- [color retain];
- [color retain];
- [color retain];
- [color retain];
- retainCount = [color retainCount];
- ASSERT_TRUE_MSG(retainCount == NSUIntegerMax, "Failed: RetainCount not correct for UICachedColor");
-}
\ No newline at end of file
