public void CheckPermutationFails_WhenOtherInputNotPermutation() { // Arrange string original = "hello"; string input = "abcde"; // Act var result = StringAndArrayAlgorithms.CheckPermutation(original, input); // Assert Assert.IsFalse(result); }
public void CheckPermutationSucceeds_WhenInputIsPermutation() { // Arrange string original = "hello"; string input = "ellho"; // Act var result = StringAndArrayAlgorithms.CheckPermutation(original, input); // Assert Assert.IsTrue(result); }