public void CheckEmptyUserInput() { Shape shape = new Shape(); string userInput = ""; ServiceGenerator service = new ServiceGenerator(); string responceMassage = "Please enter the Shape Description"; shape = service.ValidateShape(userInput); string expectedValue = shape.responceMessage; Assert.AreEqual(expectedValue, responceMassage); }
public void IsValiedProperties() { Shape shape = new Shape(); string userInput = "Draw a square with a side length of 200"; ServiceGenerator service = new ServiceGenerator(); bool isPropertyMatched = true; shape = service.ValidateShape(userInput); bool expectedValue = shape.isParametersMatched; Assert.AreEqual(expectedValue, isPropertyMatched); }
public void IsShapenotCreated() { Shape shape = new Shape(); string userInput = "Draw a with a side length of 200"; ServiceGenerator service = new ServiceGenerator(); string responceMassage = "Shape not Created"; shape = service.ValidateShape(userInput); string expectedValue = shape.responceMessage; Assert.AreEqual(expectedValue, responceMassage); }
public void IsValiedShape() { Shape shape = new Shape(); string userInput = "Draw a square with a side length of 200"; ServiceGenerator service = new ServiceGenerator(); string actualValue = "Square"; shape = service.ValidateShape(userInput); string expectedValue = shape.shapeName; Assert.AreEqual(expectedValue, actualValue, true); }