public void JosephusI5O3() { Josephus joe = GameObject.FindObjectOfType <Josephus>(); joe.JosephusAlgorithm("5"); Assert.AreEqual(joe.output.text, "3", "value was: " + joe.output.text); }
public void JosephusI2O1() { Josephus joe = GameObject.FindObjectOfType <Josephus>(); joe.JosephusAlgorithm("2"); Assert.AreEqual(joe.output.text, "1"); }
public void JosephusOnlyAcceptsPositiveInput() { Josephus joe = GameObject.FindObjectOfType <Josephus>(); joe.JosephusAlgorithm("-1"); Assert.That(joe.output.text.Equals("")); }
public void JosephusI1O1() { Josephus joe = GameObject.FindObjectOfType <Josephus>(); joe.JosephusAlgorithm("1"); Assert.That(joe.output.text.Equals("1")); }
public void JosephusOnlyAcceptsNumericInput() { Josephus joe = GameObject.FindObjectOfType <Josephus>(); joe.output.text = "hi"; joe.JosephusAlgorithm("a"); Assert.That(joe.output.text.Equals("")); }