Esempio n. 1
0
    public void GetSmallestPositiveDurationWithNegative()
    {
        var durations = new Durations(2, -1);

        Assert.AreEqual(2, durations.GetSmallestPositiveDuration());
    }
Esempio n. 2
0
    public void GetSmallestPositiveDurationException()
    {
        var durations = new Durations(-2, -1);

        Assert.ThrowsException <NegativeValueException>(() => durations.GetSmallestPositiveDuration());
    }
Esempio n. 3
0
    public void GetSmallestPositiveDuration()
    {
        var durations = new Durations(2, 1);

        Assert.AreEqual(1, durations.GetSmallestPositiveDuration());
    }