public void MiniKnight_Hit_GreaterThan() { var expectedPoints = 50; var rule = new MiniKnight(10, expectedPoints); var points = rule.ProcessRule(new List <int> { 1, 2, 3, 4, 5, 5 }); Assert.Equal(expectedPoints, points); }
public void MiniKnight_Hit_Equal() { var expectedPoints = 50; var rule = new MiniKnight(10, expectedPoints); var points = rule.ProcessRule(new List <int> { 1, 1, 1, 1, 4, 2 }); Assert.Equal(expectedPoints, points); }
public void MiniKnight_NotHit() { var valueIfHit = 50; var rule = new MiniKnight(10, valueIfHit); var points = rule.ProcessRule(new List <int> { 1, 2, 1, 1, 1, 1 }); Assert.Equal(0, points); }