Class StringExtensionTests
Test class that holds unit tests for the StringExtensions
Inherited Members
Namespace: Phoenix.Plugin.Aruba.Tests
Assembly: Phoenix.Plugin.Aruba.Tests.dll
Syntax
[TestClass]
public class StringExtensionTests
Methods
View SourceTestNameDoesConflictWithExistingData(string)
Test that the NameConflictsWithExistingData string extension will return true when there is a conflict.
Declaration
[TestMethod]
[DataRow("Test 1")]
[DataRow("Test 5")]
public void TestNameDoesConflictWithExistingData(string inputName)
Parameters
Type | Name | Description |
---|---|---|
string | inputName | The string to check. |
TestNameDoesNotConflictsWithExistingData(string, int, FillRenameableDataWithType)
Test that the NameConflictsWithExistingData string extension will return false when there is no conflicts.
Declaration
[TestMethod]
[DataRow(new object?[] { " ", 0 })]
[DataRow("")]
[DataRow("One")]
[DataRow("Name")]
[DataRow("Test")]
[DataRow("Test 6")]
[DataRow(null)]
[DataRow(new object?[] { "Name", 5, StringExtensionTests.FillRenameableDataWithType.Null })]
[DataRow(new object?[] { "Name", 5, StringExtensionTests.FillRenameableDataWithType.Empty })]
public void TestNameDoesNotConflictsWithExistingData(string inputName, int testListSize = 5, StringExtensionTests.FillRenameableDataWithType fillWithType = FillRenameableDataWithType.Default)
Parameters
Type | Name | Description |
---|---|---|
string | inputName | The string to check. |
int | testListSize | The number of test data to check against. |
StringExtensionTests.FillRenameableDataWithType | fillWithType | The type of test data to check against. |