Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 5
0
 public PeerNode(PeerNodeType type = PeerNodeType.FILM_PRINTER)
 {
     NodeType = type;
 }