Esempio n. 1
0
        public void WhenAttribute_SetsCorrectDescriptionAsDisplayName()
        {
            string        description = "attribute description.";
            WhenAttribute sut         = new WhenAttribute(description, 1);

            sut.DisplayName.Should().Be($"When {description}");
        }
Esempio n. 2
0
        public void WhenAttribute_AllowsToSpecifyOrderOfExecution()
        {
            int           expectedOrder = 1;
            WhenAttribute sut           = new WhenAttribute("test", expectedOrder);

            sut.Order.Should().Be(expectedOrder);
        }
Esempio n. 3
0
        public void WhenAttribute_SkipDescriptionIsAlwaysEmpty()
        {
            WhenAttribute sut = new WhenAttribute("test", 1);

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