示例#1
0
        public void CreateMatrixCell_ShouldReturnANewICellInstance_WhenCellValueIsMissing()
        {
            var validRowCoordinate = -1;
            var validColCoordinate = 10;

            var actual = InstantiatingMethods.CreateMatrixCell(
                validRowCoordinate,
                validColCoordinate);

            Assert.That(actual, Is.InstanceOf <ICell>());
        }
示例#2
0
        public void CreateMatrixCell_ShouldReturnANewICellInstance_WhenAllParametersAreValid()
        {
            var validRowCoordinate = -1;
            var validColCoordinate = 10;
            var cellValue          = -5;

            var actual = InstantiatingMethods.CreateMatrixCell(
                validRowCoordinate,
                validColCoordinate,
                cellValue);

            Assert.That(actual, Is.InstanceOf <ICell>());
        }