mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
21 lines
605 B
C#
21 lines
605 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using Microsoft.Agents.AI.Compaction;
|
|
|
|
namespace Microsoft.Agents.AI.Abstractions.UnitTests.Compaction;
|
|
|
|
public class CompactionResultTests
|
|
{
|
|
[Fact]
|
|
public void Skipped_HasSameBeforeAndAfter()
|
|
{
|
|
CompactionMetric metrics = new() { MessageCount = 5, TokenCount = 100 };
|
|
CompactionResult result = CompactionResult.Skipped("Test", metrics);
|
|
|
|
Assert.Equal("Test", result.StrategyName);
|
|
Assert.False(result.Applied);
|
|
Assert.Same(metrics, result.Before);
|
|
Assert.Same(metrics, result.After);
|
|
}
|
|
}
|