public void ReplaceGlobalPlaceholder_WithMissingAppSettingsProperty() { UserProfileSection userProfileSection = TestUtilities.GetSection <UserProfileSection>("UserProfileSettings"); BlogElement blog = userProfileSection.Blog; string expected = "john_doe_profile"; Assert.AreEqual(expected, blog.Location); }
public void ReplaceGlobalPlaceholder_WithFormattedNumber() { UserProfileSection userProfileSection = TestUtilities.GetSection <UserProfileSection>("UserProfileSettings"); BlogElement blog = userProfileSection.Blog; string expected = "There are total of 12 posts until 2020."; Assert.AreEqual(expected, blog.PostsMessage); }