Exemplo n.º 1
0
        public static void Providers_ThrowsArgumentNullException_ForNullInput()
        {
            // Arrange
            var section = new AssetSection();

            // Assert
            Assert.Throws <ArgumentNullException>(() => section.Providers = null);
        }
Exemplo n.º 2
0
        public static void Providers_DefaultValueIsNotNull()
        {
            // Arrange
            var section = new AssetSection();

            // Assert
            Assert.NotNull(section.Providers);
        }
Exemplo n.º 3
0
        public static void DefaultProvider_ThrowsArgumentException_ForWhiteSpaceInput()
        {
            var section = new AssetSection();

            Assert.Throws <ArgumentException>(() => section.DefaultProvider = My.WhiteSpaceOnlyString);
        }
Exemplo n.º 4
0
        public static void DefaultProvider_ThrowsArgumentException_ForEmptyInput()
        {
            var section = new AssetSection();

            Assert.Throws <ArgumentException>(() => section.DefaultProvider = String.Empty);
        }
Exemplo n.º 5
0
        public static void DefaultProvider_ThrowsArgumentNullException_ForNullInput()
        {
            var section = new AssetSection();

            Assert.Throws <ArgumentNullException>(() => section.DefaultProvider = null);
        }
Exemplo n.º 6
0
        public static void DefaultProvider_DefaultValueIsNotNull()
        {
            var section = new AssetSection();

            Assert.NotNull(section.DefaultProvider);
        }