public void ContainsPrefix() { // Arrange ElementalValueProvider valueProvider = new ElementalValueProvider("foo", 42, null); // Act & assert Assert.IsTrue(valueProvider.ContainsPrefix("foo")); Assert.IsFalse(valueProvider.ContainsPrefix("bar")); }
public void ContainsPrefix() { // Arrange ElementalValueProvider valueProvider = new ElementalValueProvider("foo", 42, null); // Act & assert Assert.True(valueProvider.ContainsPrefix("foo")); Assert.False(valueProvider.ContainsPrefix("bar")); }
public void ContainsPrefix_ReturnsFalse_IfElementCannotSpecifyValuesForPrefix( string elementName, string prefix) { // Arrange var culture = new CultureInfo("en-US"); var elementalValueProvider = new ElementalValueProvider( elementName, "hi", culture); // Act var containsPrefix = elementalValueProvider.ContainsPrefix(prefix); // Assert Assert.False(containsPrefix); }
public void ContainsPrefix_ReturnsTrue_IfElementNameStartsWithPrefix( string elementName, string prefix) { // Arrange var culture = new CultureInfo("en-US"); var elementalValueProvider = new ElementalValueProvider( elementName, "hi", culture); // Act var containsPrefix = elementalValueProvider.ContainsPrefix(prefix); // Assert Assert.True(containsPrefix); }