Beispiel #1
0
    public void DigitGroupUsedTest(int places, int value, int place, bool used)
    {
        var dg = new DigitGroup(places);

        dg.SetValue(value);
        Assert.That(dg.IsDigitUsed(place) == used);
    }
Beispiel #2
0
    public void DigitValueTest(int places, int value, int place, int expected)
    {
        var dg = new DigitGroup(places);

        dg.SetValue(value);
        Assert.That(dg.GetDigitValue(place), Is.EqualTo(expected));
    }
Beispiel #3
0
    public void DigitGroupDigitsTest(int places, int value, int[] expectedDigits)
    {
        var dg = new DigitGroup(places);

        dg.SetValue(value);
        Assert.That(dg.Digits, Is.EqualTo(expectedDigits));
    }