Пример #1
0
        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);
        }
Пример #2
0
        public void Returns_empty_for_empty_string()
        {
            var i = StringsFile.GetString("", out var str);

            Assert.AreEqual(0, i);
            Assert.AreEqual("", str);
        }
Пример #3
0
 public void Throws_for_null()
 {
     Assert.ThrowsException <ArgumentNullException> (() => StringsFile.GetString(null, out var str));
 }