コード例 #1
0
        public void Random_Match_ReturnNextValue(int input, Janken.Hands.Unicode expected)
        {
            var mock = new Mock <IRandomNumberGenerator>();

            mock.Setup(x => x.Next(Enum.GetNames(typeof(Hands.Unicode)).Length)).Returns(input);
            var actual = Janken.Hands.Instance.Random(mock.Object);

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public void Drawable_Match_ReturnNextValue(Janken.Hands.Unicode input, Janken.Hands.Unicode expected)
        {
            var actual = Janken.Hands.Instance.Drawable(input);

            Assert.AreEqual(expected, actual);
        }
コード例 #3
0
 public void Unicode_Match_ReferenceValue(Janken.Hands.Unicode actual, int expected)
 {
     Assert.AreEqual(expected, (int)actual);
 }