Beispiel #1
0
        public void GivenProblemType_WhenProblemOfTypeCreated_ThenShouldContainTitle(TestProblemType type, string expectedTitle)
        {
            // act
            var actual = Problem.OfType(type).Create();

            // assert
            actual.Title.Should().Be(expectedTitle);
        }
Beispiel #2
0
        public void GivenProblemType_WhenProblemOfTypeCreated_ThenShouldContainProperties(
            TestProblemType type,
            IDictionary <string, object> expectedProperties)
        {
            // act
            var actual = Problem.OfType(type).Create();

            // assert
            actual.Properties.Should().BeEquivalentTo(expectedProperties);
        }
Beispiel #3
0
        public void GivenProblemType_WhenProblemOfTypeCreated_ThenShouldContainStatus(TestProblemType type, int?expectedStatus)
        {
            // act
            var actual = Problem.OfType(type).Create();

            // assert
            actual.Status.Should().Be(expectedStatus);
        }