public void WhenAttribute_SetsCorrectDescriptionAsDisplayName() { string description = "attribute description."; WhenAttribute sut = new WhenAttribute(description, 1); sut.DisplayName.Should().Be($"When {description}"); }
public void WhenAttribute_AllowsToSpecifyOrderOfExecution() { int expectedOrder = 1; WhenAttribute sut = new WhenAttribute("test", expectedOrder); sut.Order.Should().Be(expectedOrder); }
public void WhenAttribute_SkipDescriptionIsAlwaysEmpty() { WhenAttribute sut = new WhenAttribute("test", 1); sut.Skip.Should().BeEmpty(); }