Exemplo n.º 1
0
    public void TenSecondLimit_TenSecondsPast_ReachedLimit()
    {
        var sut = new Assets.Scripts.Workers.Score_and_Limits.TimeLimit(10);

        sut.Update(10);
        Assert.IsTrue(sut.ReachedLimit());
    }
Exemplo n.º 2
0
    public void TenSecondLimit_OneSecondPast_NotReachedLimit()
    {
        var sut = new Assets.Scripts.Workers.Score_and_Limits.TimeLimit(10);

        sut.Update(1);

        Assert.IsFalse(sut.ReachedLimit());
    }