mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Enable more analyzers and various code tweaks/cleanup (#738)
This commit is contained in:
+6
-6
@@ -29,23 +29,23 @@ public class DeclarativeWorkflowContextTests
|
||||
{
|
||||
// Arrange
|
||||
TokenCredential credentials = new DefaultAzureCredential();
|
||||
int maxCallDepth = 10;
|
||||
int maxExpressionLength = 100;
|
||||
const int MaxCallDepth = 10;
|
||||
const int MaxExpressionLength = 100;
|
||||
ILoggerFactory loggerFactory = LoggerFactory.Create(builder => { });
|
||||
|
||||
// Act
|
||||
Mock<WorkflowAgentProvider> mockProvider = new(MockBehavior.Strict);
|
||||
DeclarativeWorkflowOptions context = new(mockProvider.Object)
|
||||
{
|
||||
MaximumCallDepth = maxCallDepth,
|
||||
MaximumExpressionLength = maxExpressionLength,
|
||||
MaximumCallDepth = MaxCallDepth,
|
||||
MaximumExpressionLength = MaxExpressionLength,
|
||||
LoggerFactory = loggerFactory
|
||||
};
|
||||
|
||||
// Assert
|
||||
Assert.Equal(mockProvider.Object, context.AgentProvider);
|
||||
Assert.Equal(maxCallDepth, context.MaximumCallDepth);
|
||||
Assert.Equal(maxExpressionLength, context.MaximumExpressionLength);
|
||||
Assert.Equal(MaxCallDepth, context.MaximumCallDepth);
|
||||
Assert.Equal(MaxExpressionLength, context.MaximumExpressionLength);
|
||||
Assert.Same(loggerFactory, context.LoggerFactory);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user