Edit

Share via


TestingUtils Class

Definition

Collection of test utilities

public static class TestingUtils
type TestingUtils = class
Public Module TestingUtils
Public Class TestingUtils
Inheritance
TestingUtils

Methods

ConfigureDefaultLoggingBuilder(ILoggingBuilder, String)

Configure builder with a FileLoggerProvider which logs to filePath by default;

ConfigureThreadPoolSettingsForStorageTests(Int32)

Configures the ThreadPool and the ServicePointManager for tests.

CreateDefaultLoggerFactory(String, LoggerFilterOptions)

Create the default logger factory, which would configure logger factory with a FileLoggerProvider that writes logs to filePath and console. by default;

CreateDefaultLoggerFactory(String)

Create the default logger factory, which would configure logger factory with a FileLoggerProvider that writes logs to filePath and console. by default;

CreateTraceFileName(String, String)

Create trace file name for a specific node or client in a specific deployment

Multiply(TimeSpan, Double)

Multiply a timeout by a value

RoundTripDotNetSerializer<T>(T, IGrainFactory, SerializationManager)

Serialize and deserialize the input

WaitUntilAsync(Func<Boolean,Task<Boolean>>, TimeSpan, Nullable<TimeSpan>)

Run the predicate until it succeed or times out

WaitUntilAsync(Func<Boolean,Task<Boolean>>, TimeSpan)

Run the predicate until it succeed or times out

WithTimeout(Task, TimeSpan, String)

Try to complete the task in a given time

Applies to