|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.DotNet.Cli.Commands.Test.Terminal;
internal sealed class TestDetailState(long id, IStopwatch? stopwatch, string text)
{
private string _text = text;
public long Id { get; } = id;
public long Version { get; set; }
public IStopwatch? Stopwatch { get; } = stopwatch;
public string Text
{
get => _text;
set
{
if (!_text.Equals(value, StringComparison.Ordinal))
{
Version++;
_text = value;
}
}
}
}
|