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

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

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

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

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