public string ConcatenateValues_FourParameters_ReturnsResult(short shortValue, float floatValue, bool boolValue, double doubleValue) { // Arrange CultureInfo currentCulture = CultureInfo.CurrentCulture; CultureInfo.CurrentCulture = new CultureInfo("en-US"); // Act string actualResult = ConcatenatingStrings.ConcatenateValues(shortValue, floatValue, boolValue, doubleValue); // Tear down CultureInfo.CurrentCulture = currentCulture; return(actualResult); }
public string ConcatenateValues_ThreeParameters_ReturnsResult(string str, int intValue, long longValue) { // Arrange CultureInfo currentCulture = CultureInfo.CurrentCulture; CultureInfo.CurrentCulture = new CultureInfo("en-US"); // Act string actualResult = ConcatenatingStrings.ConcatenateValues(str, intValue, longValue); // Tear down CultureInfo.CurrentCulture = currentCulture; // Assert return(actualResult); }
public void ConcatenateValues_Enumerable_ParametersAreValid_ReturnsResult(object[] data) { // Arrange IEnumerable <object> values = (IEnumerable <object>)data[0]; string expectedResult = (string)data[1]; CultureInfo currentCulture = CultureInfo.CurrentCulture; CultureInfo.CurrentCulture = new CultureInfo("en-US"); // Act string actualResult = ConcatenatingStrings.ConcatenateValues(values); // Tear down CultureInfo.CurrentCulture = currentCulture; // Assert Assert.AreEqual(expectedResult, actualResult); }