Ejemplo n.º 1
0
        //[HostType("ASP.NET")]
        //[AspNetDevelopmentServerHost("C:\\Users\\NTT\\Desktop\\secviz\\trunk\\Secviz_project\\ServerService", "/")]
        //[UrlToTest("http://localhost:13413/")]
        public void SVGraphNodeConstructorTest()
        {
            SVGraphNode target = new SVGraphNode("type", "id");

            Assert.IsNotNull(target);
            //Assert.Inconclusive("TODO: Implement code to verify target");
        }
Ejemplo n.º 2
0
        //[HostType("ASP.NET")]
        //[AspNetDevelopmentServerHost("C:\\Users\\NTT\\Desktop\\secviz\\trunk\\Secviz_project\\ServerService", "/")]
        //[UrlToTest("http://localhost:13413/")]
        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);
        }
Ejemplo n.º 3
0
        //[HostType("ASP.NET")]
        //[AspNetDevelopmentServerHost("C:\\Users\\NTT\\Desktop\\secviz\\trunk\\Secviz_project\\ServerService", "/")]
        //[UrlToTest("http://localhost:13413/")]
        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));
            }
        }