public void IfBothInputsArePopulatedStringWins(string inputString, int?inputInt, bool expectedOutput) { var testClass = new ConvertToBoolean(); var result = testClass.DoConversion(inputString, inputInt); Assert.AreEqual(expectedOutput, result); }
public void HappyPath(string inputString, int?inputInt, bool expectedOutput) { var testClass = new ConvertToBoolean(); var result = testClass.DoConversion(inputString, inputInt); Assert.AreEqual(expectedOutput, result); }
public void InvalidInputThrowsCorrectException(string inputString, int?inputInt) { var testClass = new ConvertToBoolean(); Assert.Throws <InvalidPluginExecutionException>(() => testClass.DoConversion(inputString, inputInt)); }