Esempio n. 1
0
        public void WhenMultipleIsDisallowedThenReturnsFalse()
        {
            // Arrange
            FilterAttribute filter = new DisallowMultipleFilterAttribute();

            // Act
            var allow = filter.AllowMultiple;

            // Assert
            Assert.False(allow);
        }
Esempio n. 2
0
        public void WhenMultipleIsDisallowedThenReturnsFalse()
        {
            // Arrange
            FilterAttribute filter = new DisallowMultipleFilterAttribute();

            // Act
            var allow = filter.AllowMultiple;

            // Assert
            Assert.False(allow);
        }