public void CheckPermutation() { Permutation permutation = new Permutation(); var result = permutation.CheckPermutation("pale", "elap"); Assert.AreEqual(true, result); }
static void Main(string[] args) { CheckEdit checkEdit = new CheckEdit(); var editThree = checkEdit.CheckIfEditCanBePerformed("pale", "bale"); Permutation checkUnique = new Permutation(); var result = checkUnique.CheckPermutation("ABC", "BCX"); Console.ReadLine(); }
public void CheckPermutation(string s1, string s2, bool expected) { Assert.Equal(expected, Permutation.CheckPermutation(s1, s2)); }