public static void ShouldNotFailOnMultipleDisposeCallseWithoutInitialization() { var postscriptValidator = new PdfAValidator(); postscriptValidator.Dispose(); #pragma warning disable S3966 // Expecting multiple dispose calls to pass postscriptValidator.Dispose(); #pragma warning restore S3966 // Expecting multiple dispose calls to pass Assert.True(true); }
public static async Task ShouldNotFailOnMultipleDisposeCalls() { var postscriptValidator = new PdfAValidator(); _ = await postscriptValidator.ValidateAsync("./TestPdfFiles/FromLibreOffice.pdf"); postscriptValidator.Dispose(); #pragma warning disable S3966 // Expecting multiple dispose calls to pass postscriptValidator.Dispose(); #pragma warning restore S3966 // Expecting multiple dispose calls to pass }