Пример #1
0
        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);
        }
Пример #2
0
        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);
        }