Show / Hide Table of Contents

Class StringExtensionTests

Test class that holds unit tests for the StringExtensions

Inheritance
object
StringExtensionTests
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phoenix.Plugin.Aruba.Tests
Assembly: Phoenix.Plugin.Aruba.Tests.dll
Syntax
[TestClass]
public class StringExtensionTests

Methods

View Source

TestNameDoesConflictWithExistingData(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.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX