public void FindCommonSuffixLength(string content1, int startIndex1, int length1, string content2, int startIndex2, int length2, int expectedResult) { Substring substring1 = new Substring(content1, new Range(startIndex1, length1)); Substring substring2 = new Substring(content2, new Range(startIndex2, length2)); Assert.AreEqual(expectedResult, substring1.FindCommonSuffixLength(substring2)); }