public void DisplayNameShouldHaveCorrectValueWhenUsingUppercase() { var attribute = new NamedFactAttribute(); var result = attribute.DisplayName; result.Should().Be("Display Name Should Have Correct Value When Using Uppercase"); }
public void DisplayNameShouldHaveCorrectValueWhenUsingDoubleSpaceJoiner() { var attribute = new NamedFactAttribute(SplitBy.Uppercase, JoinWith.DoubleSpace); attribute.SetDisplayName(); var result = attribute.DisplayName; result.Should().Be("Display Name Should Have Correct Value When Using Double Space Joiner"); }
public void DisplayNameShouldHaveCorrectValueWhenUsingTabJoiner() { var attribute = new NamedFactAttribute(SplitBy.Uppercase, JoinWith.Tab); attribute.SetDisplayName(); var result = attribute.DisplayName; result.Should().Be("Display\tName\tShould\tHave\tCorrect\tValue\tWhen\tUsing\tTab\tJoiner"); }
public void DisplayName_Should_Behave_Consistently_With_Invalid_Splitter() { var attribute = new NamedFactAttribute(SplitBy.Uppercase, JoinWith.SingleSpace); attribute.SetDisplayName(); var result = attribute.DisplayName; result.Should().Be("Display Name_ Should_ Behave_ Consistently_ With_ Invalid_ Splitter"); }
public void DisplayNameShouldBehaveConsistentlyWithInvalidSplitter() { var attribute = new NamedFactAttribute(SplitBy.Underscore, JoinWith.SingleSpace); attribute.SetDisplayName(); var result = attribute.DisplayName; result.Should().Be("DisplayNameShouldBehaveConsistentlyWithInvalidSplitter"); }
public void DisplayNameShouldHaveCorrectValueForTestCases(string testCase, string expected, SplitBy splitter, JoinWith joiner = JoinWith.SingleSpace) { var attribute = new NamedFactAttribute(splitter, joiner, testCase); attribute.SetDisplayName(); var result = attribute.DisplayName; result.Should().Be(expected); }
public void DisplayName_Should_Have_Correct_Value_When_Using_Underscore() { var attribute = new NamedFactAttribute(SplitBy.Underscore, JoinWith.SingleSpace); attribute.SetDisplayName(); var result = attribute.DisplayName; result.Should().Be("DisplayName Should Have Correct Value When Using Underscore"); }
public void DisplayNameShouldHaveCorrectValueWhenUsingMethodName() { var attribute = new NamedFactAttribute(NameIt.MethodName, SplitBy.Uppercase, JoinWith.SingleSpace); attribute.SetDisplayName(); var result = attribute.DisplayName; result.Should().Be("Display Name Should Have Correct Value When Using Method Name"); }
public void DisplayNameShouldHaveCorrectValueWhenUsingFileNameWithoutExtention() { var attribute = new NamedFactAttribute(NameIt.FileNameWithoutExtension, SplitBy.Uppercase, JoinWith.SingleSpace); attribute.SetDisplayName(); var result = attribute.DisplayName; result.Should().Be("Display Name Tests"); }
public void DisplayNameShouldHaveCorrectValueWhenUsingNamespace() { var attribute = new NamedFactAttribute(NameIt.NameSpace, SplitBy.Underscore, JoinWith.SingleSpace); attribute.SetDisplayName(); var result = attribute.DisplayName; result.Should().Be("AutoName.xUnit.Tests"); }
public void DisplayNameShouldHaveCorrectValueWhenUsingAbsolutePath() { var attribute = new NamedFactAttribute(NameIt.AbsolutePath, SplitBy.Uppercase, JoinWith.SingleSpace); attribute.SetDisplayName(); var result = attribute.DisplayName; result.Should().Contain("Display Name Tests.cs"); result.Should().Contain("Auto Name.x"); }