EasyGitHub Include - from Google Code

It's not a Git Only World

In this example we're actually using a code file hosted on Google's Code repository - really it doesn't matter where the file is hosted as long as the URL you give the plugin.

In this case the URL is: http://core-plot.googlecode.com/hg/framework/Source/CPTColorTests.m

#import "CPTColor.h"
#import "CPTColorTests.h"

@implementation CPTColorTests

#pragma mark -
#pragma mark NSCoding Methods

    CPTColor *color = [CPTColor redColor];

    CPTColor *newColor = [NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:color]];

    STAssertEqualObjects(color, newColor, @"Colors not equal");