public void ShouldBeCorrectFormat() { var fileLine = new FileLine { CustomerCount = 10, SalesmanCount = 10, MostExpensive = 1000, WorseSalesman = "Teste" }; var result = fileLine.ToString("{CustomerCount}ç{SalesmanCount}ç{MostExpensive}ç{WorseSalesman}"); result.Contains(fileLine.WorseSalesman).Should().BeTrue(); result.Contains(fileLine.CustomerCount.ToString()).Should().BeTrue(); result.Contains(fileLine.SalesmanCount.ToString()).Should().BeTrue(); result.Contains(fileLine.MostExpensive.ToString()).Should().BeTrue(); }