You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tracking issue for the next major (v2) release: actually delete all currently [Obsolete]-marked public members.
Background
Members listed below were previously deleted in #5384 (shipped in v1.27.0), which broke semver — see #5539. They are being restored (with [Obsolete] reapplied) for the remainder of the v1.x line. The actual deletion must wait until the v2 major version bump so consumers receive proper compile-time signaling.
Members to remove in v2
TUnit.Assertions
CountWrapper<TCollection, TItem> class — TUnit.Assertions.Conditions.Wrappers
LengthWrapper class — TUnit.Assertions.Conditions.Wrappers
CollectionAssertionBase<TCollection, TItem>.HasCount() — replaced by Count()
CollectionAssertionBase<TCollection, TItem>.HasCount(int, string?) — replaced by Count().IsEqualTo(n)
AssertionExtensions.HasLength(IAssertionSource<string>) — replaced by Length()
AssertionExtensions.HasLength(IAssertionSource<string>, int, string?) — replaced by Length().IsEqualTo(n)
TUnit.Core
TestBuilderContext.ObjectBag property — replaced by StateBag
TestRegisteredContext.ObjectBag property — replaced by StateBag
Timing record class — replaced by OpenTelemetry activity spans
ITestOutput.Timings property
ITestOutput.RecordTiming(Timing) method
TestContext explicit-interface implementations of Timings / RecordTiming and the internal _timingsLock field
Internal TimingEntry record (no longer needed once public Timing API is gone)
Tracking issue for the next major (v2) release: actually delete all currently
[Obsolete]-marked public members.Background
Members listed below were previously deleted in #5384 (shipped in v1.27.0), which broke semver — see #5539. They are being restored (with
[Obsolete]reapplied) for the remainder of the v1.x line. The actual deletion must wait until the v2 major version bump so consumers receive proper compile-time signaling.Members to remove in v2
TUnit.Assertions
CountWrapper<TCollection, TItem>class —TUnit.Assertions.Conditions.WrappersLengthWrapperclass —TUnit.Assertions.Conditions.WrappersCollectionAssertionBase<TCollection, TItem>.HasCount()— replaced byCount()CollectionAssertionBase<TCollection, TItem>.HasCount(int, string?)— replaced byCount().IsEqualTo(n)AssertionExtensions.HasLength(IAssertionSource<string>)— replaced byLength()AssertionExtensions.HasLength(IAssertionSource<string>, int, string?)— replaced byLength().IsEqualTo(n)TUnit.Core
TestBuilderContext.ObjectBagproperty — replaced byStateBagTestRegisteredContext.ObjectBagproperty — replaced byStateBagTimingrecord class — replaced by OpenTelemetry activity spansITestOutput.TimingspropertyITestOutput.RecordTiming(Timing)methodTestContextexplicit-interface implementations ofTimings/RecordTimingand the internal_timingsLockfieldTimingEntryrecord (no longer needed once publicTimingAPI is gone)Process at v2 cut
TUnit.PublicAPI/Tests.*_Library_Has_No_API_Changes.*.verified.txtsnapshots