public void valid(string number, string expected) { var cn = new CheckNumber(number); Assert.Equal(int.Parse(number), cn.Value); Assert.Equal(expected, cn.ToString()); }