public static void GenericArgumentValueFormatterDefaultPriority( IArgumentValueFormatter formatter, Priority priority) { "Given an argument value formatter that does not override priority" .x(() => formatter = new SomeArgumentValueFormatter()); "When I fetch the Priority" .x(() => priority = formatter.Priority); "Then it should be the default priority" .x(() => priority.Should().Be(Priority.Default)); }
public RangedFormatter(IArgumentValueFormatter formatter, int distanceFromKnownType) { this.Formatter = formatter; this.distanceFromKnownType = distanceFromKnownType; }