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); }
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)); } }
/// <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); }
public void SVGraphNodeConstructorTest() { SVGraphNode target = new SVGraphNode("type", "id"); Assert.IsNotNull(target); //Assert.Inconclusive("TODO: Implement code to verify target"); }