public void UnformatInvariant_ReversedSpecifiers() { var actual = Parent.Unformatter.UnformatInvariant("one zero", "{1} {0}"); EnumerableExtensions.EnumerateSame(new[] { "zero", "one" }, actual); }
public void UnformatInvariant_UnusedFormatPlaceholders() { var actual = Parent.Unformatter.UnformatInvariant("zero one two four", "{0} {1} {2} {4}"); EnumerableExtensions.EnumerateSame(new[] { "zero", "one", "two", String.Empty, "four" }, actual); }
public void UnformatInvariant_Typical() { var actual = Parent.Unformatter.UnformatInvariant("'red' alert", "'{0}' alert"); EnumerableExtensions.EnumerateSame(new[] { "red" }, actual); }