Exemplo n.º 1
0
        public void Indexers_ReturnCorrectCell(int x, int y, int skip)
        {
            _container = new FakeBaseContainer(3, 3);
            var point = new Point(x, y);
            var expected = _container.Skip(skip).Take(1).Single();

            Assert.That(_container[x, y], Is.SameAs(expected),
                "XYIndexer not working");
            Assert.That(_container[point], Is.SameAs(expected),
                "PointIndexer not working");
        }