Beispiel #1
0
		public void ControllerTreeNode_ToString_GiveInformation()
		{
			var node = new ControllerTreeNode("HomeController", "ControllerServices");
			var rootNode = new AreaTreeNode("Root");
			rootNode.AddChild(node);
			Assert.AreNotEqual(node.GetType().FullName, node.ToString());
			Assert.AreEqual("ControllerServices", node.Namespace);
		}
Beispiel #2
0
        public void ControllerTreeNode_ToString_GiveInformation()
        {
            var node     = new ControllerTreeNode("HomeController", "ControllerServices");
            var rootNode = new AreaTreeNode("Root");

            rootNode.AddChild(node);
            Assert.AreNotEqual(node.GetType().FullName, node.ToString());
            Assert.AreEqual("ControllerServices", node.Namespace);
        }
Beispiel #3
0
        public void ControllerTreeNode_MultipleToString_GiveInformation()
        {
            ControllerTreeNode node     = new ControllerTreeNode("HomeController", "ControllerServices");
            AreaTreeNode       rootNode = new AreaTreeNode("Root");
            AreaTreeNode       areaNode = new AreaTreeNode("Area");

            areaNode.AddChild(node);
            rootNode.AddChild(areaNode);
            Assert.AreNotEqual(node.GetType().FullName, node.ToString());
        }