PageRenderTime 11ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Tests/YEDOperationNodeTest.j

http://github.com/rheimbuch/YED
Unknown | 27 lines | 21 code | 6 blank | 0 comment | 0 complexity | b10f9b81cc3339d27cc6a24a1b48a794 MD5 | raw file
 1@import "../YEDNode.j"
 2@import "../YEDOperationNode.j"
 3@import "../YEDSubjectNode.j"
 4
 5@implementation YEDOperationNodeTest : OJTestCase
 6
 7- (void)testYEDOperationNodeShouldNotConnectToAnotherYEDOperationNode
 8{
 9    var node1 = [YEDOperationNode node],
10        node2 = [YEDOperationNode node];
11    
12    [self assertFalse:([node1 canConnectTo:node2])
13          message:"A operation node1 should not connect to another operation node2"];
14    
15    [self assertFalse:([node2 canConnectTo:node1])
16          message:"A operation node2 should not connect to another operation node1"];
17}
18
19- (void)testYEDOperationNodeShouldConnectToAYEDSubjectNode
20{
21    var node1 = [YEDOperationNode node],
22        node2 = [YEDSubjectNode node];
23    
24    [self assertTrue:([node1 canConnectTo:node2])
25          message:"A Subject node can connect to an operation node"];
26}
27@end