TestingUtils Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Collection of test utilities
public static class TestingUtils
type TestingUtils = class
Public Module TestingUtils
Public Class TestingUtils
- Inheritance
-
TestingUtils
Methods
ConfigureDefaultLoggingBuilder(ILoggingBuilder, String) |
Configure |
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 |
CreateDefaultLoggerFactory(String) |
Create the default logger factory, which would configure logger factory with a FileLoggerProvider that writes logs to |
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 |