public void Parses_strings(string line, string expected, int end) { var i = StringsFile.GetString(line, out var str); Assert.AreEqual(end, i); Assert.AreEqual(expected, str); }
public void Returns_empty_for_empty_string() { var i = StringsFile.GetString("", out var str); Assert.AreEqual(0, i); Assert.AreEqual("", str); }
public void Throws_for_null() { Assert.ThrowsException <ArgumentNullException> (() => StringsFile.GetString(null, out var str)); }