public void Test_NullFromat() { var value = _fixture.Create <string>(); var text = TextBuilderHelper.GetText(_currentCulture, null, value); text.ShouldBeEquivalentTo(value); }
public void Test_GetText() { var value = _fixture.Create <string>(); var text = TextBuilderHelper.GetText(_currentCulture, "Text: {0}.", value); text.ShouldBeEquivalentTo("Text: " + value + "."); }
public void Test_BadFromat() { var value = _fixture.Create <string>(); const string format = "Text: {0."; var text = TextBuilderHelper.GetText(_currentCulture, format, value); text.ShouldBeEquivalentTo(format + value); }
public void Test_NullValue() { var text = TextBuilderHelper.GetText(_currentCulture, _fixture.Create <string>(), null); text.ShouldBeEquivalentTo(string.Empty); }