astonishing-cpu-1506
10/15/2024, 11:33 PMPulumi.RunException
an internal
class? I'm trying to have some unit tests made, that test error handling / validation scenarios, however it's not possible to use FluentAssertions' .Should().Throw<Pulumi.RunException>()
due to the access modifier.
internal class RunException : Exception
{
public RunException(string message)
: base(message)
{
}
public RunException(string message, Exception? innerException)
: base(message, innerException)
{
}
public static RunException OutputsHaveIncorrectType(IEnumerable<string> outputAttributeNames)
{
var message = $"Output(s) '{string.Join(", ", outputAttributeNames)}' have incorrect type. [Output] attributed properties must be instances of Output<T>.";
return new RunException(message);
}
}
Can anyone explain the rationale behind this decision?future-hairdresser-70637
10/18/2024, 11:35 AM