示例#1
0
        public void NodeTypeTest()
        {
            PeerNodeType type     = new PeerNodeType();
            PeerNode     target   = new PeerNode(type);
            PeerNodeType expected = new PeerNodeType();
            PeerNodeType actual;

            target.NodeType = expected;
            actual          = target.NodeType;
            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void DefaultOrientationTest()
        {
            PeerNodeType type     = new PeerNodeType();
            PeerNode     target   = new PeerNode(type);
            int          expected = 0;
            int          actual;

            target.DefaultOrientation = expected;
            actual = target.DefaultOrientation;
            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void MaxDensityTest()
        {
            PeerNodeType type     = new PeerNodeType();
            PeerNode     target   = new PeerNode(type);
            int          expected = 0;
            int          actual;

            target.MaxDensity = expected;
            actual            = target.MaxDensity;
            Assert.AreEqual(expected, actual);
        }
示例#4
0
        public void DefaultFilmSizeTest()
        {
            PeerNodeType type     = new PeerNodeType();
            PeerNode     target   = new PeerNode(type);
            string       expected = string.Empty;
            string       actual;

            target.DefaultFilmSize = expected;
            actual = target.DefaultFilmSize;
            Assert.AreEqual(expected, actual);
        }
示例#5
0
文件: PeerNode.cs 项目: whhub/Filming
 public PeerNode(PeerNodeType type = PeerNodeType.FILM_PRINTER)
 {
     NodeType = type;
 }