示例#1
0
        public void AlwaysFalseAttributeGetDefinitionReturnsNonNullToggleDefinition()
        {
            // Arrange
            var sut = new AlwaysFalseAttribute();

            // Act
            var result = sut.GetDefinition(typeof(AlwaysFalseToggle));

            // Assert
            result.Should().NotBeNull();
        }
示例#2
0
        public void AlwaysFalseAttributeGetDefinitionReturnsEvaluationThatReturnsFalse()
        {
            // Arrange
            var sut        = new AlwaysFalseAttribute();
            var definition = sut.GetDefinition(typeof(AlwaysFalseToggle));

            // Act
            var result = definition.Evaluation();

            // Assert
            result.Should().BeFalse();
        }