public void FindFirstNonRepeatedCharIndex1BruteForceCompleteTest4Null() { try { FindFirstNonRepeatedCharIndex1BruteForceComplete.FindFirstNonRepeatedCharIndex(null); } catch (ArgumentException) { Assert.IsTrue(true); return; } Assert.Fail(); }
public void FindFirstNonRepeatedCharIndex1BruteForceCompleteTest4Empty() { var index = FindFirstNonRepeatedCharIndex1BruteForceComplete.FindFirstNonRepeatedCharIndex(string.Empty); Assert.AreEqual(-1, index); }
public void FindFirstNonRepeatedCharIndex1BruteForceCompleteTest3() { var index = FindFirstNonRepeatedCharIndex1BruteForceComplete.FindFirstNonRepeatedCharIndex("teter"); Assert.AreEqual(4, index); }
public void FindFirstNonRepeatedCharIndex1BruteForceCompleteTest4NoNonRepeating() { var index = FindFirstNonRepeatedCharIndex1BruteForceComplete.FindFirstNonRepeatedCharIndex("testtest"); Assert.AreEqual(-1, index); }
public void FindFirstNonRepeatedCharIndex2UseHashSetCompleteTest2() { var index = FindFirstNonRepeatedCharIndex1BruteForceComplete.FindFirstNonRepeatedCharIndex("teste"); Assert.AreEqual(2, index); }