public void CellConstructorCreatesContextWithDefaultPropertyValues()
        {
            var cell = new Cell();
            ICell context = cell.GetContext();

            Assert.AreEqual(default(object), context.Content);
            Assert.AreEqual((CellState)default(int), context.State);
        }
        public void SetStateAssignsSpecifiedStateToContext()
        {
            var cell = new Cell();

            cell.SetState(CellState.Revealed);
            ICell context = cell.GetContext();

            Assert.AreEqual(default(object), context.Content);
            Assert.AreEqual(CellState.Revealed, context.State);
        }
        public void SetContentAssignsSpecifiedContentToContext()
        {
            var cell = new Cell();
            var contentFactory = new ContentFactory();
            cell.SetContent(contentFactory.GetContent(ContentType.Bomb));
            ICell context = cell.GetContext();

            Assert.AreEqual(!default(bool), context.Content is Bomb);
            Assert.AreEqual((CellState)default(int), context.State);
        }
        public void GetContextReturnsObjectOfTypeCellContext()
        {
            var cell = new Cell();

            Assert.AreEqual(!default(bool), cell.GetContext() is CellContext);
        }