Exemple #1
0
        public void RateType_ShouldReturnFalseOnTryParse_WhenTheInputIsInvalid()
        {
            // Arrange
            string input = "1234";

            // Act
            bool output = RateType.TryParse(input, out RateType instance);

            // Assert
            output.ShouldBeFalse();
            instance.ShouldBe(RateType.Unrecognized);
        }
Exemple #2
0
        public void RateType_ShouldReturnTrueOnTryParse_WhenTheInputIsValid()
        {
            // Arrange
            string input = "Enrollment";

            // Act
            bool output = RateType.TryParse(input, out RateType instance);

            // Assert
            output.ShouldBeTrue();
            instance.ShouldBe(RateType.Enrollment);
        }