// awesome-humans/dotnet template | targets: net11.0, csharp-15 | last-reviewed: 2026-11-14 | sources: ms-learn // Belongs to Example.Library.Tests. Without a test, `dotnet test` exits with code 8, because MTP fails a session that runs no tests. using Xunit; namespace Example.Library.Tests; public class TextExtensionsTests { [Fact] public void TruncateReturnsTextShorterThanMaxLengthUnchanged() => Assert.Equal("Hi", "Hi".Truncate(5)); }