Exemplo n.º 1
0
        public void BorderValueTest()
        {
            var expected = 1f;

            map.BorderValue = expected;
            map.Clear(10f);

            Assert.Equal(expected, map[-1, -1]);
            Assert.Equal(expected, map[-1, 0]);
            Assert.Equal(expected, map[-1, 1]);
            Assert.Equal(expected, map[-1, 2]);

            Assert.Equal(expected, map[2, -1]);
            Assert.Equal(expected, map[2, 0]);
            Assert.Equal(expected, map[2, 1]);
            Assert.Equal(expected, map[2, 2]);
        }