public void TryReadSuccess(SuccessCase <int> data)
        {
            var end = data.Start;

            Assert.AreEqual(true, PowerReader.TryRead(data.Text, ref end, out var actual));
            Assert.AreEqual(data.Expected, actual);
            Assert.AreEqual(data.ExpectedEnd, end);
        }
Beispiel #2
0
        public void TryReadSuccess(SuccessData <int> data)
        {
            var end = data.Start;
            int actual;
            var success = PowerReader.TryRead(data.Text, ref end, out actual);

            Assert.AreEqual(true, success);
            Assert.AreEqual(data.Expected, actual);
            Assert.AreEqual(data.ExpectedEnd, end);
        }