public void ToStringTest(string expected, long[] values) { var longestLong = new LongestLong(values); var str = longestLong.ToString(); Assert.AreEqual(expected, str); }
public void InitializeInvalidVariadic() { Assert.Throws <ArgumentException>(() => { var unused = new LongestLong(-1, 5, -8, 0, 7, -5); }); }
public void InitializeInvalidList() { Assert.Throws <ArgumentException>(() => { var unused = new LongestLong(new List <long> { -1, 5, -8, 0, 7, -5 }); }); }
public void Initialize() { var unused = new LongestLong(); }