public void Formatters_AutoDetection_Should_Not_Throw() { foreach (var formatter in GetExtensions <IFormatter>().Where(f => f.CanAutoDetect)) { var fi = FormattingInfoExtensions.Create("", new List <object?> { new() });
public void ImplicitFormatterEvaluation_With_Wrong_Args_Should_Fail() { var smart = GetFormatter(); Assert.That( smart.GetFormatterExtension <SubStringFormatter>() !.TryEvaluateFormat( FormattingInfoExtensions.Create("{0::(0,2)}", new List <object?>(new[] { new object() }))), Is.EqualTo(false)); }