예제 #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);
        }