public void DoubleColaTests3() { string[] names = new string[] { "Sheldon", "Leonard", "Penny", "Rajesh", "Howard" }; int n = 52; Assert.AreEqual("Penny", DoubleCola.WhoIsNext(names, n)); }
public void Test4() { string[] names = new string[] { "Sheldon", "Leonard", "Penny", "Rajesh", "Howard" }; int n = 6; Assert.AreEqual("Leonard", DoubleCola.WhoIsNext(names, 7230702951)); }
public void DoubleColaTests4() { string[] names = new string[] { "Sheldon", "Leonard", "Penny", "Rajesh", "Howard" }; long n = 7230702951; Assert.AreEqual("Leonard", DoubleCola.WhoIsNext(names, n)); }
public void InputNumberLowerThanOneShouldThrowException() { var action = new Action(() => { DoubleCola.WhoIsNext(_names, 0); }); action.Should().Throw <ArgumentException>(); }
public void InputNumberGreaterThanMaxValueShouldThrowException() { var action = new Action(() => { var asdf = _names.Length * (long)Math.Pow(2, 61); DoubleCola.WhoIsNext(_names, asdf); }); action.Should().Throw <ArgumentException>(); }
public void NextInLineShouldReturnCorrectPerson(string expected, long turn, params string[] queue) { AssertThatAreEqual(DoubleCola.WhoIsNext(queue, turn), expected); }
public void Input7230702951ShouldReturnExpected() { var result = DoubleCola.WhoIsNext(_names, 7230702951); result.Should().Be("Leonard"); }
public void Input52ShouldReturnExpected() { var result = DoubleCola.WhoIsNext(_names, 52); result.Should().Be("Penny"); }
public void Input6ShouldReturnExpected() { var result = DoubleCola.WhoIsNext(_names, 6); result.Should().Be("Sheldon"); }