Esempio n. 1
0
        public void Sibala_Test(int dice1, int dice2, int dice3, int dice4, string expectedOutput, EnumOutputType ExpectedOutputType, int expectedPoint, int expectedMaxPoint)
        {
            var sibala = new Sibala(dice1, dice2, dice3, dice4);

            Assert.AreEqual(expectedOutput, sibala.Output);
            Assert.AreEqual(ExpectedOutputType, sibala.OutputType);
            Assert.AreEqual(expectedPoint, sibala.Point);
            Assert.AreEqual(expectedMaxPoint, sibala.MaxPoint);
        }
Esempio n. 2
0
 private async Task ClosePopUp(EnumOutputType outputType, string inputValue)
 {
     ReturnValue = new Tuple <EnumOutputType, string>(outputType, inputValue);
     await Rg.Plugins.Popup.Services.PopupNavigation.Instance.PopAsync();
 }
Esempio n. 3
0
 public void Compare_ByType_FirstRoll_Win(EnumOutputType xOutputType, EnumOutputType yOutputType)
 {
     _firstRoll.OutputType.Returns(xOutputType);
     _secondRoll.OutputType.Returns(yOutputType);
     Assert.IsTrue(SibalaComparer.Compare(_firstRoll, _secondRoll) > 0);
 }