public void ToString_ReturnsExpected() { var printerSettings = new PrinterSettings(); var expected = "[PrinterSettings " + printerSettings.PrinterName + " Copies=" + printerSettings.Copies.ToString(CultureInfo.InvariantCulture) + " Collate=" + printerSettings.Collate.ToString(CultureInfo.InvariantCulture) + " Duplex=" + printerSettings.Duplex.ToString() + " FromPage=" + printerSettings.FromPage.ToString(CultureInfo.InvariantCulture) + " LandscapeAngle=" + printerSettings.LandscapeAngle.ToString(CultureInfo.InvariantCulture) + " MaximumCopies=" + printerSettings.MaximumCopies.ToString(CultureInfo.InvariantCulture) + " OutputPort=" + printerSettings.PrintFileName.ToString(CultureInfo.InvariantCulture) + " ToPage=" + printerSettings.ToPage.ToString(CultureInfo.InvariantCulture) + "]"; Assert.Equal(expected, printerSettings.ToString()); }