public void NullConverterException() { // Arrange IConverter testedConverter = null; var expectedExceptionType = typeof(ArgumentNullException); var expectedExceptionMessage = SourceParameterName; // Act var actualException = Assert.Throws <ArgumentNullException>(() => testedConverter.CanConvertTo(expectedExceptionType)); // Assert Assert.Equal(expectedExceptionMessage, actualException.ParamName); }