예제 #1
0
        public void ThenAttribute_SetsCorrectDescriptionAsDisplayName()
        {
            string        description = "attribute description.";
            ThenAttribute sut         = new ThenAttribute(description, 1);

            sut.DisplayName.Should().Be($"Then {description}");
        }
예제 #2
0
        public void ThenAttribute_AllowsToSpecifyOrderOfExecution()
        {
            int           expectedOrder = 1;
            ThenAttribute sut           = new ThenAttribute("test", expectedOrder);

            sut.Order.Should().Be(expectedOrder);
        }
예제 #3
0
        public void ThenAttribute_SkipDescriptionIsAlwaysEmpty()
        {
            ThenAttribute sut = new ThenAttribute("test", 1);

            sut.Skip.Should().BeEmpty();
        }