public void Test_Find_BigInt_And_Result_Not_Found_Count_Returned() { var coverter = new ValueFinder(); int counter = coverter.Search <BigInteger, int>(BigInteger.Parse("17272838119191929838299111"), 5); Assert.AreEqual(0, counter); }
public void Test_Find_Emtpy__SearchValue_Throw_Argument_Exception() { var coverter = new ValueFinder(); var ex = Assert.Throws <ArgumentException>(() => coverter.Search <string, string>("asdasdasdasdasd", string.Empty)); Assert.AreEqual("seach value cannot be empty", ex.Message); }
public void Test_Find_Letter_And_Result_Not_Found_Count_Returned() { var coverter = new ValueFinder(); int counter = coverter.Search <string, string>("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Eanean sodales justo et Enim ornare, a congue lacus commodo.", "Z"); Assert.AreEqual(0, counter); }