示例#1
0
 public void AlertIDTest()
 {
     SVGraphNode target = new SVGraphNode("type", "id");
     string expected = "id"; // TODO: Initialize to an appropriate value
     string actual;
     target.AlertID = expected;
     actual = target.AlertID;
     Assert.AreEqual(expected, actual);
 }
示例#2
0
        public void AddPostNodeTest()
        {
            SVGraphNode target = new SVGraphNode("type", "id");
            SVGraphNode tmp = new SVGraphNode("type1", "id1");
            target.AddPostNode(tmp);
            List<SVGraphNode> expected = new List<SVGraphNode>();
            expected.Add(tmp);

            List<SVGraphNode>  actual = target.PostNodes;
            Assert.AreEqual(expected.Count, actual.Count);
            foreach (var item in actual)
            {
                Assert.IsTrue(expected.Contains(item));
            }
        }
示例#3
0
 /// <summary>
 /// This method is used to add a follow node's instance to this node's instance
 /// </summary>
 /// <param name="node">the following node is added</param>
 public void AddPostNode(SVGraphNode node)
 {
     PostNodes.Add(node);
 }
示例#4
0
 public void SVGraphNodeConstructorTest()
 {
     SVGraphNode target = new SVGraphNode("type", "id");
     Assert.IsNotNull(target);
     //Assert.Inconclusive("TODO: Implement code to verify target");
 }
示例#5
0
 /// <summary>
 /// This method is used to add a follow node's instance to this node's instance
 /// </summary>
 /// <param name="node">the following node is added</param>
 public void AddPostNode(SVGraphNode node)
 {
     PostNodes.Add(node);
 }