public void IsValid_NumberIsString_False() { List <string> testList = new List <string>(); ParsingData parsing = new ParsingData(testList); string[] singleElemenArray = { "aa", "aa", "4", "bb", "bb", "5", "cc", "cc", "wrong" }; bool isValidToJson = parsing.IsValid(singleElemenArray); Assert.IsFalse(isValidToJson); }
public void IsValid_RightInput_True() { List <string> testList = new List <string>(); ParsingData parsing = new ParsingData(testList); string[] singleElemenArray = { "aa", "aa", "4", "bb", "bb", "8" }; bool isValidToJson = parsing.IsValid(singleElemenArray); Assert.IsTrue(isValidToJson); }
public void IsValid_TwoElementsTooMuch_False() { List <string> testList = new List <string>(); ParsingData parsing = new ParsingData(testList); string[] singleElemenArray = { "aa", "aa", "4", "bb", "bb", "8", "cc", "cc" }; bool isValidToJson = parsing.IsValid(singleElemenArray); Assert.IsFalse(isValidToJson); }
public void IsValid_NoData_False() { List <string> testList = new List <string>(); ParsingData parsing = new ParsingData(testList); string[] singleElemenArray = { }; bool isValidToJson = parsing.IsValid(singleElemenArray); Assert.IsFalse(isValidToJson); }