示例#1
0
 public void GenerateOk()
 {
     const int width = 43;
       const int height = 29;
       var b = new BoolMatrix(width, height);
       var c = b.Generate(1);
       Assert.IsNotNull(c);
 }
示例#2
0
        public void GenerateOk()
        {
            const int width  = 43;
            const int height = 29;
            var       b      = new BoolMatrix(width, height);
            var       c      = b.Generate(1);

            Assert.IsNotNull(c);
        }
示例#3
0
 public void GenerateFail()
 {
     const int width = 43;
       const int height = 29;
       var b = new BoolMatrix(width, height);
       for (int y = 0; y < height; y++)
     {
       for (int x = 0; x < width; x++)
     {
       b[y, x] = true;
     }
     }
       var c = b.Generate(1);
       Assert.IsNull(c);
 }
示例#4
0
        public void GenerateFail()
        {
            const int width  = 43;
            const int height = 29;
            var       b      = new BoolMatrix(width, height);

            for (int y = 0; y < height; y++)
            {
                for (int x = 0; x < width; x++)
                {
                    b[y, x] = true;
                }
            }
            var c = b.Generate(1);

            Assert.IsNull(c);
        }