public void CheckPermutationUsingLinqFails_WhenInputNotPermutation() { // Arrange string original = "hello"; string input = "ellhoo"; // Act var result = StringAndArrayAlgorithms.CheckPermutationUsingLinq(original, input); // Assert Assert.IsFalse(result); }
public void CheckPermutationUsingLinqSucceeds_WhenInputIsPermutation() { // Arrange string original = "hello"; string input = "ellho"; // Act var result = StringAndArrayAlgorithms.CheckPermutationUsingLinq(original, input); // Assert Assert.IsTrue(result); }