public void Convert_HydraRingCombinationType_ReturnCombinationType(HydraRingCombinationType hydraRingCombinationType, CombinationType expectedCombinationType) { // Call CombinationType combinationType = CombinationTypeConverter.Convert(hydraRingCombinationType); // Assert Assert.AreEqual(expectedCombinationType, combinationType); }
public void Convert_InvalidEnumValue_ThrowsInvalidEnumArgumentException() { // Call TestDelegate test = () => CombinationTypeConverter.Convert((HydraRingCombinationType)99); // Assert const string message = "The value of argument 'hydraRingCombinationType' (99) is invalid for Enum type 'CombinationType'."; TestHelper.AssertThrowsArgumentExceptionAndTestMessage <InvalidEnumArgumentException>(test, message); }