public void TEST_CreateType_GIVEN_3SameSideLengths_THEN_ItReturnsEquilateral() { // Arrange var expectedResult = typeof(Equilateral).Name.ToString(); double[] sideLengths = new double[] { 3, 3, 3 }; string errorMessage = string.Empty; mockTriangleValidator.Setup(validator => validator.Validate(sideLengths, out errorMessage)).Returns(true); // Act IShape shape = target.CreateShapeConcreteType(sideLengths); // Asset Assert.AreEqual(expectedResult, shape.TypeName); }
private void CreateShapeConcreteType(double[] args) { _concreteType = _requiredShapeFacotry.CreateShapeConcreteType(args); }