Ejemplo n.º 1
0
        public void IsAvailable_ShouldReturn_False_WhenRequestedEnvironmentAvailabilitiesIsSpecified_And_IsAvailableEqualsFalse()
        {
            // Arrange
            var formSchema = new FormSchemaBuilder()
                             .WithEnvironmentAvailability("Int", false)
                             .Build();

            // Act
            var result = formSchema.IsAvailable("Int");

            // Assert
            Assert.False(result);
        }
Ejemplo n.º 2
0
        public void IsAvailable_ShouldReturn_True_WhenRequestedEnvironmentAvailabilitiesIsNotSpecified()
        {
            // Arrange
            var formSchema = new FormSchemaBuilder()
                             .WithEnvironmentAvailability("prod", false)
                             .Build();

            // Act
            var result = formSchema.IsAvailable("Int");

            // Assert
            Assert.True(result);
        }