public static void Main()
var x = new NUnitLite.AutoRun().Execute(new string[]{"--test:RunnerTests", "--noc"});
Console.WriteLine("----------------------------------------------");
Console.WriteLine(x==0?"All Test Passed... :¬)": string.Format("{0} tests failed... :¬(", x));
Console.WriteLine("----------------------------------------------");
public string Maskify(string numbers)
[TestCase("4556364607935616", "############5616", Description = "Last 4 digit should not be masked")]
[TestCase("64607935616", "#######5616", Description = "Last 4 digit should not be masked")]
[TestCase("1", "1", Description = "Less than or Equal 4 characters should not be masked")]
[TestCase("", "", Description = "Empty string")]
[TestCase("1234", "1234", Description = "Less than or Equal 4 characters should not be masked")]
public void ValidResults(string number, string expectedResult )
var actualResult = c.Maskify(number);
Assert.AreEqual(expectedResult, actualResult);