public GetDeploymentType ( string deploymentType ) : DeploymentType | ||
deploymentType | string | |
Результат | DeploymentType |
public void GetDeploymentType_SuppliedStringIsRepresentsTheFullDeploymentType_ResultIsDefaultDeploymentType(string deploymentTypeString) { // Arrange var deploymentTypeParser = new DeploymentTypeParser(); // Act var result = deploymentTypeParser.GetDeploymentType(deploymentTypeString); // Assert Assert.AreEqual(DeploymentType.Full, result); }
public void GetDeploymentType_SuppliedStringIsRepresentsTheNotRecognizedDeploymentType_ResultIsTheNotRecognizedDeploymentType(string deploymentTypeString) { // Arrange var deploymentTypeParser = new DeploymentTypeParser(); // Act var result = deploymentTypeParser.GetDeploymentType(deploymentTypeString); // Assert Assert.AreEqual(DeploymentType.NotRecognized, result); }
public void GetDeploymentType_SuppliedStringIsNotAValidDeploymentType_ResultIsDefaultDeploymentType(string deploymentTypeString) { // Arrange var deploymentTypeParser = new DeploymentTypeParser(); // Act var result = deploymentTypeParser.GetDeploymentType(deploymentTypeString); // Assert Assert.AreEqual(DeploymentTypeParser.DefaultDeploymentType, result); }