示例#1
0
        public void ByteInitialization_RandomConstructorTest()
        {
            int howMany = 4;
            int size    = 5;
            ByteInitialization_Random target = new ByteInitialization_Random(howMany, size);

            Assert.AreEqual(target.Type, OperatorType.Byte);
        }
示例#2
0
        public void CreateTest()
        {
            int howMany = 5;
            int size    = 4;
            ByteInitialization_Random target = new ByteInitialization_Random(howMany, size);
            BytePoint p1 = new BytePoint(new byte[] { 1, 2, 3, 4 });
            BytePoint p2 = new BytePoint(new byte[] { 17, 2, 3, 46 });
            BytePoint p3 = new BytePoint(new byte[] { 4, 2, 36, 4 });
            BytePoint p4 = new BytePoint(new byte[] { 7, 26, 3, 4 });
            BytePoint p5 = new BytePoint(new byte[] { 35, 2, 33, 4 });

            PointSet expected = new PointSet(new HashSet <Point>()
            {
                p1, p2, p3, p4, p5
            });
            PointSet actual;

            actual = target.Create();
            Assert.AreEqual(expected.Set.Count, actual.Set.Count);
            //tu sprawdzic rozmiary
            //Assert.AreEqual(expected.Set.g, actual.Set.Count);
        }