public void ToInt32_NonNumericValue_ReturnsDefaultValue() { // Arrange const string s = "foo"; const int defaultValue = 5; // Act int x = I18NHelper.ToInt32(s, defaultValue); // Assert Assert.AreEqual(x, 5, I18NHelper.FormatInvariant("I18NHelper.ToInt32 converted '{0}' into {1} instead of {2}!", s, x, defaultValue)); }